DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+1 =
Submit