How can I copy a particular content of a file into a new file using Linux?
For example I have file called test.log file and it contains some 1000 lines. From those 1000 lines I need to copy the lines between 200 - 700 lines.
Is there any single line command in LINUX/UNIX?
Try this:
sed -n '200,700p' logfilename > destinationFilename
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With