Quote:
Originally posted by j-me
I really want to use:
cat /home/input | grep $nowmonth $nowday > mail -s
I try it but it gives me errors after the $nowmonth.
grep: 04: No such file or directory.
but it just does not seem to work right. Any ideas?
|
1) You don't need to use cat as grep will read a file directly
2) Quote the string you want to grep for.
So:
grep "$nowmonth $nowday" /home/input | mail
foo@bar.com