Search Results

Search: Posts Made By: linuxconcepts
1,518
Posted By RudiC
Using pamu's file and based on his approach:$ awk...
Using pamu's file and based on his approach:$ awk '!/^[,0-9]*$/ {print NR,$0}' file
7 28,f
8 ff,25
9 ff,ss
4,329
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,329
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 3 of 3

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