Created
January 11, 2016 20:55
-
-
Save dberkholz/e5320c65b09b7932c949 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in */*xls; do | |
echo ${file#*/} | |
in2csv --sheet 'Expense Report' $file \ | |
| awk -F, '{if ($5 == "Mileage") {printf "%d\t%.2f\t%s (%.2f mi @ $0.56/mi)\n", $1, $6, $4, $6/0.56 }}' | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment