Name: raxit Date: February 28, 2003 at 07:55:27 Pacific Subject: replace a newline with string OS: hpux CPU/Ram: 133
Comment:
hi, i need to add a string like /java at the end of each line in a file. i tried it using commands like tr '\012' '/java\012' but i think tr command only replaces a character. tried it using sed command ..but that also doesnt work. please help. thanks.
java$ will obviously work...but simply /java substitution will work as well. Though I cannot explain why. I will leave that to the Gurus of this forum. -Anukta