Search Results

Search: Posts Made By: manab86
4,572
Posted By RudiC
$ sed -n '/Sheet2/,/Sheet3/ {/Sheet/d; p}' file ...
$ sed -n '/Sheet2/,/Sheet3/ {/Sheet/d; p}' file
a,6
a,7
a,8
a,9
a,10
4,572
Posted By hanson44
Yes, we wouldn't want to disappoint. :D Here are...
Yes, we wouldn't want to disappoint. :D Here are two possible ways, both of which I like:

$ sed -n "/Sheet2/,/Sheet3/ p" file | grep -v Sheet
a,6
a,7
a,8
a,9
a,10


$ awk '/Sheet3/ { exit...
Showing results 1 to 2 of 2

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