Mailinglist Archive: opensuse (3261 mails)
| < Previous | Next > |
Re: [SLE] SOLVED Re: [SLE] [OT SCRIPT SED] How can I use sed to replace /usr with shared?
- From: Adilson Guilherme Vasconcelos Ribeiro <adilson@xxxxxxxxxxx>
- Date: Thu, 19 Apr 2001 20:45:18 -0300 (BRT)
- Message-id: <Pine.LNX.4.10.10104191942550.16970-100000@xxxxxxxxxxxxxxxxxxxxx>
Today, Jonathan Wilson smoke something and in the trip wrote...
> Never mind I figured it out (Anders also got it right, after I solved it) : had to do sed -e and put the comands in quotes:
> sed -e "s/\/usr\ /shared\ /g" suse7.1_config_options.jw
>
Hi,
you could do also:
sed "s./usr .shared .g"
you can use any character as parameter divisor, and between this
character you choose, if you need to use it on the pattern, you escape it.
Abracos,
Adilson
> Never mind I figured it out (Anders also got it right, after I solved it) : had to do sed -e and put the comands in quotes:
> sed -e "s/\/usr\ /shared\ /g" suse7.1_config_options.jw
>
Hi,
you could do also:
sed "s./usr .shared .g"
you can use any character as parameter divisor, and between this
character you choose, if you need to use it on the pattern, you escape it.
Abracos,
Adilson
| < Previous | Next > |