Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    What error do you receive when running the sed command in your question? Please edit your post and provide that information. Commented Aug 27, 2019 at 0:06
  • 1
    > file2.txt will overwrite file2: if you want to append the copied lines to the end of the file, use >> file2.txt Commented Aug 27, 2019 at 0:07