Quote:
|
Originally Posted by anbu23
Code:
day=`date +%d`
dt=`date +%b`" "${day#0}
grep "$dt.*fail" filename
|
Thanks for the help... but when I cut/paste just those lines into a bourne shell script I get a 'bad substitution' error message. Here's my simple little script:
#!/bin/sh
day=`date +%d`
dt=`date +%b`" "${day#0}
grep "$dt.*fail" /var/adm/SYSLOG
I figure I'm missing something simple.
-chris