Search Results

Search: Posts Made By: steve2216
6,603
Posted By Kesavan
Grep content between timestamp
-i option is for in place edition without redirection
but i don't get why it is not working for you...
anyway try this one...

#!/bin/sh
sed -n '/[0-9][0-9]\/[0-9][0-9]\/[0-9][0-9][0-9][0-9]/p'...
3,917
Posted By Scrutinizer
Try: #!/bin/sh tm=`TZ=GMT date +%H` ...
Try:
#!/bin/sh
tm=`TZ=GMT date +%H`
/usr/xpg4/bin/awk "/^$tm:/{print;if(getline)print}" af02_alarm_log.31082010 > /tmp/HLR_alarm.txt
or alternatively replace last line with:
/usr/xpg4/bin/sed...
Showing results 1 to 2 of 2

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