different options in sed
I use sed to do basic string replace options in files.But i have a doubt.
Consider i have a path like this inside a file.
And i need to replace this with
I tried this with sed but failed all the time.Can any one help me to get this working through "sed".
How about showing us the actual command(s) you tried, so we can point out where you went wrong?
The most likely culprit however, is that the slashes in the text conflict with the slashes in sed's substitution command. This is easily fixed, just by using a different delimiter (you could also backslash-escape them, but why bother?).
As you suugested it worked after executing this,
sed -i 's|/home/dinesh/scripts|/var/tmp/scripts/|'g file
|All times are GMT -5. The time now is 07:29 PM.|