truncate a text file in CLI?
I'm not a linux expert, sorry for the dumb question.
How to truncate some lines in a file and put the result in created-by-fly new file.
For example, taking only line 43-50 from foo.txt and put the result in bar.txt where bar.txt is created directly in 1 command. Do you know what I mean?
Maybe using piping or redirection or something...I don't know.
Please help. Thx.
|