Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Handling // character with sed
Name: bvsbabu Date: October 10, 2006 at 07:57:02 Pacific OS: AIX Unix CPU/Ram: AIX Product: HP
Comment:
I am trying to replace the text "*url" with the value "jdbc:oracle://localhost:1521;SID=dbinst".
The script I am using to replace the "*url" string is as below
Summary: Hi, I am trying to do the following simple operation with sed, but it wouldnt work because sed doesn't allow me to use variables in the replace string. Anyway to do it ? testvar="TestFilename.#.txt" t...
Summary: Your sed syntax of 2s/old/new/ is asking to change first occurrence of old to new only in line 2 of the file, and that is why it works with your abbreviated file. And s/old/new/2 would change only the...
Summary: For practice, I coded a sed solution for this. The rules that I followed are: Join all lines together, but a line beginning with NEW will start a new line. The first and last lines of the file may...