-   Programming (
-   -   sed command (

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

tbutttbutt 08-05-2006 10:05 AM


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.

All times are GMT -5. The time now is 08:19 AM.