Categories
Which command can fill all lines in a file with specific text?
A txt file is given, there are different lines, but it is necessary that specific text be added to each line by command, in the last columns, of course.
Answer the question
In order to leave comments, you need to log in
sed -n 's/$/"text"/' file.txt > new-file.txt
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question