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.
replace a complex string using sed
Name: may Date: December 2, 2003 at 07:42:54 Pacific OS: W2K
Comment:
Hello, I want to replace in a file a string with another string like the example:
file name: Test String1 = ggggg (exist in the file Test) String2 = /tcwork/nirgr/fffff
the following doesn't work because of the slash: sed 's/gggg/ /tcwork/nirgr/fffff /g' Test
Summary: I am trying to extract a number from a string using 'sed'. This works fine on Linux/Unix but when i do the same on windows XP its creating problems. The code is as follows : <mkdir dir="${build.dir...
Summary: 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 com...
Summary: I need to create a script, taking a number of parameters (a target string, a string to replace the target string, and a number of files), that performs the substitution and a backup file creation whe...