or combine it (might not work on every shell)$ date -d "2 days ago" "+%e/%b/%Y" 28/Mar/2011 $ grep "28/Mar/2011" input.txt
$ grep `date -d "2 days ago" "+%e/%b/%Y"` input.txt
In reply to Re^2: Optimise the script
by Anonymous Monk
in thread Optimise the script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |