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
Post a Comment