Hi all can anyone help with a direct command line syntax for the following
im trying to add text to the end of the last line in a text file like so

aaa
bbb
ccc


Wishing to add ddd on the end of this list.
I have tried the following but it doesnt have quite the desired effect any help would be good.


perl -pi -e s/'$'/'ddd'/g script1

This gives me this


aaaddd dddbbbddd dddcccddd dddddd ddd



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to