Search Results

Search: Posts Made By: matcam79
1,159
Posted By matcam79
Hi, it seems you need to actually use...
Hi,

it seems you need to actually use /usr/xpg4/bin/grep to obtain patter for file, not the default /usr/bin/grep.

Hanson44, using the -f together with the -v option then worked. Many thanks...
1,159
Posted By matcam79
Hi hanson44, Thanks for your reply. that...
Hi hanson44,

Thanks for your reply. that seem to be a good option but unfortunately it seems that an old version of grep is installed.

# grep -v -f revertsearch.txt /var/adm/messages | wc...
1,159
Posted By matcam79
Using grep or something similar to invert search.
Hi guys,

I have a script in which it simply do a grep of strings for the var/adm/messages file:


NEWDATE=`TZ=GMT+1 date +%b" "%d" "%H`

getalarm1=`grep "sent to primary BE"...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy