awk 'NR == 1 || NR % 3 == 0' yourfile
sed -n '1p;0~3p' input.txt
Read full article from bash - How to keep only every nth line of a file - Super User
sed -n '1p;0~3p' input.txt
Read full article from bash - How to keep only every nth line of a file - Super User
No comments:
Post a Comment