LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   sed command (http://www.linuxquestions.org/questions/programming-9/sed-command-470967/)

ancys 08-05-2006 05:00 AM

sed command
 
hi all

I need ur help

In shell script(bash)
i want to replace /path/replace as /sai/test.txt using sed command

how to do this
help

tbutttbutt 08-05-2006 10:05 AM

try:

sed 's/\/path\/replace/sai\/test.txt/g'

The 'g' at the end will do it for all lines.

////// 08-05-2006 11:50 AM

Here is some nice sed examples.

http://sed.sourceforge.net/sed1line.txt


All times are GMT -5. The time now is 07:06 AM.