Search Results

Search: Posts Made By: a_ba
35,316
Posted By ctsgnb
All depends what you put in $a and $b : if...
All depends what you put in $a and $b :

if you use line number, you should not use the slash
a=2
b=4
sed $a,$b'!d' infilebut if you want to do your selection based on the pattern matching, then...
35,316
Posted By ctsgnb
use double quote instead of simple one and...
use double quote instead of simple one
and remove the slash by the way :

the more simple:
sed $a,$b'!d' infile

but those may also work:
sed ''$a,$b'!d' infile(4 simple quotes) or
sed...
Showing results 1 to 2 of 2

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