Saturday, February 17, 2024

copying a range of lines from terminal

 previously posted a way

which involved opening it in vim.

This uses sed instead.

    

    sed -n '246,$p' filename.txt | pbcopy

this copys from line 246 to the end of the file 

No comments:

Post a Comment