Link to home
Start Free TrialLog in
Avatar of iaguirre
iaguirreFlag for Spain

asked on

Append a pattern at the end of each line

That´s the question. How can I append a pattern at the end of each
line of a file?

TIA
Avatar of yuzh
yuzh

let say you have a file:myfile, and you want to add aa at the end of each line, you do:

cat myfile |  awk '{print $0"aa"}' > myfile.tmp
mv myfile.tmp myfile

ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial