Commit 2aa47ad1 authored by nimrod's avatar nimrod
Browse files

Better finding of the last reciepts zip file.

For sending my accountant.
parent 3967a354
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
last_month != date +%Y-%m --date 'last month'
last_zip != ls *.zip | sort -r | head -1
last_zip != find -maxdepth 1 -name '*.zip' \! -name '${last_month}.zip' -printf '%f\n' | sort -r | head -1
new_files != find reciepts/ -type f -newer ${last_zip}

${last_month}.zip: ${new_files}