LinuxQuestions.org

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

ancys 08-05-2006 04: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 09: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 10:50 AM

Here is some nice sed examples.

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


All times are GMT -5. The time now is 04:23 AM.