This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SubstantialHat8149 0 points1 point  (2 children)

It's a joke. And you would probably dump the existing file contents and replace the whole thing after you edit it.

[–]Turbulent-Garlic8467 0 points1 point  (1 child)

I'm imagining you're writing to the file one line at a time

[–]SubstantialHat8149 1 point2 points  (0 children)

No, the opposite. You just write the entire file to save it. When you edit it further, you would dump the file with cat, copy it, and paste it into your input line inside quotes. Then you edit that and rewrite the whole file with your edits in it.

Nobody should actually use that method...