Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
extract every nth line using sed linux fedora
user24373
Programming language:
Shell/Bash
2021-06-26 14:18:05
0
Q:
extract every nth line using sed linux fedora
Dan Getz
Code:
Shell/Bash
2021-03-02 23:59:18
$ sed -n '1p;0~3p' input.txt Line 1 Line 3 Line 6
0
Tags
line
using
linux
fedora
Related
delete first two lines of file linux
cut first 10 characters linux
how to erase folder that match characters in linux
bash delete the last line of a file
linux find after date
linux shell loop through all inputs except last
bash remove characters from end of every line
bash delete first n characters of each line
bash remove first character from line
linux remove lines from file
bash how to delete ^M at the end of every line
sed remove first line
delete lines text file linux
New to Communities?
Join the community