//View Tip #215
Similar Tips
» Moved Trac and Subversion repositories to another machine/direct
» Random password generator.
» Print a random shell-fu tip
» Calendar with current date
» Get real names of current users

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
If your version of grep supports coloring matches, you can use the following to give a calendar with the current date colored:

cal | grep --color=auto -E  \(\ \|^\)$(date +%e)\(\ \|\$\)\|\$


View Comments »




Comments 

Add your comment

Comments are currently disabled
AdrianTM
It worked, but now I get this:
grep: 2( |$)|$: No such file or directory

Why?
Posted 2009-01-03 00:27:37

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit