Search Results

Search: Posts Made By: soly
4,958
Posted By soly
sed before and after regexp
Dear all

i have the code which print 1 line of context before and after regexp, with line number

sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h

the code work well but any one can tell me...
Showing results 1 to 1 of 1

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