Skip to content

Instantly share code, notes, and snippets.

@tail-call
Created February 13, 2016 05:40
Show Gist options
  • Save tail-call/734dbf8a1eda3133456e to your computer and use it in GitHub Desktop.
Save tail-call/734dbf8a1eda3133456e to your computer and use it in GitHub Desktop.
Unix: highlight current date with parentheses
#!/bin/sh
cal -h | \
sed -e "s/^/ /;s/ \($(date +%_2d)\) /(\1)/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment