Search Results

Search: Posts Made By: MadeInGermany
7,263
Posted By MadeInGermany
sed does not have variables and cannot count. ...
sed does not have variables and cannot count.
With awk it's simple:
awk '(++n==3) {print "INSERT"; n=0} (/Header/) {n=0} {print}' file
Showing results 1 to 1 of 1

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