Reputation: 1323
I have a big text file URL.txt. I want to print every second line on the terminal (without altering the content of the file) after line number 40 using sed command.
Upvotes: 0
Views: 1546
Reputation: 10149
With GNU sed you can do
sed -n '40~2 p' file
Upvotes: 2