Skip to content

Instantly share code, notes, and snippets.

@iphoting
Created February 27, 2013 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iphoting/5045043 to your computer and use it in GitHub Desktop.
Save iphoting/5045043 to your computer and use it in GitHub Desktop.
Ledger output for Expenses by Month specified.
#!/usr/bin/env bash
if [ "$1" ]; then
MTH="$1"
else
MTH="`date +%b`"
fi
echo "Month: ${MTH}."
exec ledger -V -p "${MTH}" b exp and not \(cash or starbucks\)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment