Answer the question
In order to leave comments, you need to log in
How to edit a file via bash linux?
Good afternoon.
There was a need through ssh to edit the file. Open it, insert 50 lines in a certain place and close it, saving it. It would seem a simple task, but I didn’t see anything on the Internet other than the sed command. And this command gives me an error:
sed: -e expression #1, char 2: extra characters after command
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question