How to write a little sed script?

Todd Pytel tppytel at earthlink.net
Sun Dec 15 09:34:38 PST 2002


Here ya' go...

cd /usr/src/libpng-1.2.5
cat Makefile | sed 's/prefix=\/usr\/local/prefix=\/usr/' > tmp
mv tmp Makefile


Todd

On Sun, 15 Dec 2002 17:20:48 -0000
"Giles Bathgate" <mail at gilesbathgate.com> wrote:

> Hi,
> 
> Being a relative newbie, I am not sure how to use sed.
> 
> I want to write a script that will replace 
> 
> prefix=/usr/local
> 
> to 
> 
> prefix=/usr
> 
> in 
> 
> /usr/src/libpng-1.2.5/Makefile
> 
> Thanks
> 
> Giles
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list