Hi
I have a text file that looks something like this
[23][<1][CRITICAL][unixprocexists.sh /usr/sbin/xntpd][10][][1][Process /usr/sbin/xntpd not running.]
[24][<1][CRITICAL][unixprocexists.sh sendmail][10][][1][Process sendmail not running.]
I want run throu the file one line at the time, seleting the entyre line
If I do something like this
for item in `cat /ovchk.cfg`
do
echo $item
done
Then the $item is the individual words - I would like it to be the intire line.
Thanks
Larshg
I have a text file that looks something like this
[23][<1][CRITICAL][unixprocexists.sh /usr/sbin/xntpd][10][][1][Process /usr/sbin/xntpd not running.]
[24][<1][CRITICAL][unixprocexists.sh sendmail][10][][1][Process sendmail not running.]
I want run throu the file one line at the time, seleting the entyre line
If I do something like this
for item in `cat /ovchk.cfg`
do
echo $item
done
Then the $item is the individual words - I would like it to be the intire line.
Thanks
Larshg