Search Results

Search: Posts Made By: KDMishra
3,743
Posted By Yoda
ps -ef | grep MQ | grep -v grep From grep...
ps -ef | grep MQ | grep -v grep
From grep manual page:
-v All lines but those matching are printed.
9,175
Posted By Lem
With sed I think we'd need two runs: ...
With sed I think we'd need two runs:
lastline=$(sed -n '/^2012 Jul/ =' file |tail -n1)
sed -n "/2012 Jun/,${lastline:-$} p" file
--
Bye
Showing results 1 to 2 of 2

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