Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
loops, echo and cat in the ass.
one command can replace everythingsed -r 's/(.*)/\1\1/' < ./file1.txt > ./output.txt
$ cat file1.txt
1
2
3
4
5
$ sed -r 's/(.*)/\1\1/' < ./file1.txt
11
22
33
44
55
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question