Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

extract every nth line using sed linux fedora

$ sed -n '1p;0~3p' input.txt
Line 1
Line 3
Line 6
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #extract #nth #line #sed #linux #fedora
ADD COMMENT
Topic
Name
4+1 =