User Tools

Site Tools


sed:print:print_every_nth_line

SED - Print - Print every Nth line

Beginning at line 3, print every 7th line.

gsed -n '3~7p'               # GNU sed only
sed -n '3,${p;n;n;n;n;n;n;}' # other seds
sed/print/print_every_nth_line.txt · Last modified: 2020/08/17 08:32 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki