unix - Sed/Awk deleting selective lines -


this may simple question, struggling find solution, provide simple unix sed or awk command delete every 3rd , 4th line of file starting 5th line.

if you're using gnu sed, can use first~step address format, eg.

sed -e '6~3 d' -e '8~4 d' file 

deletes 6th line, every 3rd, , deletes 8th line, every 4th.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -