Search Results

Search: Posts Made By: Scrutinizer
3,979
Posted By Scrutinizer
That is the case with sed, but with awk it can be...
That is the case with sed, but with awk it can be on the same line.

$ printf '1 2\n2 3\n3 4\n' | sed -n '/1/,/2/p'
1 2
2 3

$ printf '1 2\n2 3\n3 4\n' | awk '/1/,/2/'
1 2
3,979
Posted By Scrutinizer
I suggest using a range expression, so that all...
I suggest using a range expression, so that all replacements occur over all lines. Try:
awk '/Umbist_reverse_inst/,/\);/{gsub(/\(\)/,"")}1' list
Also, the parentheses need to be escaped, since they...
Showing results 1 to 2 of 2

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