Search Results

Search: Posts Made By: meuser
5,201
Posted By radoulov
In that case you should use alternation (|) as in...
In that case you should use alternation (|) as in your original command:

sed '/begin/,/foo\|bar/{/foo\|bar/!d;}' infileIt should be noted that only few sed implementations support alternation.
5,201
Posted By radoulov
sed '/begin/,/end[12]/{/end[12]/!d;}' infile
sed '/begin/,/end[12]/{/end[12]/!d;}' infile
Showing results 1 to 2 of 2

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