Search Results

Search: Posts Made By: saidineshbabu
1,285
Posted By saidineshbabu
i got this. But still i cant able to pass the...
i got this. But still i cant able to pass the variable.

sed -i '3,$/pattern/d' filename.txt

My requirement is:
Passing the pattern to variable a. file with $a (i.e) 12345 shoud delete all the...
1,285
Posted By saidineshbabu
delete lines
I have a file with ~1000 lines.
I need to delete all the lines before a pattern by passing the pattern in to variable. how can i do that.

my file contains a pattern. passing it to variable as
...
Showing results 1 to 2 of 2

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