A
A
Andrey2020-05-25 17:45:02
linux
Andrey, 2020-05-25 17:45:02

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

1 answer(s)
U
uvelichitel, 2020-05-25
@andrey-marun

sed -n 's/$/"text"/' file.txt > new-file.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question