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

forms - Secure PHP File Upload Script -

c# - Regex Problems, extracting data to groups -

silverlight - SL4 - TextTrimming in DataGridRowGroupHeader -