How do I copy a line from one file to another in Linux?

Phương Linh

New member
How do I copy a line from one file to another in Linux?
Answer
You can use
grep
to search for a regular expression in details. txt and redirect the result to the new file. If not you will have to search for each line you want to copy, still using grep, and append them to new. txt using >> in stead of > .
 

Tìm kiếm

Back
Top