[SunHELP] script request!

Simon Jespersen shj at pine.dk
Fri Sep 20 09:11:13 CDT 2002


Hi list i got this example and i works really fine, thanks for input

#!/usr/bin/ksh
for i in *.pl
do
sed 's/nana/mona/g' $i > $i.temp
mv $i.temp $i
done




Simon Jespersen
Project engineer
Pine Tree Systems A/S
Damhaven 5d 
DK-7100 Vejle
Email: shj at pine.dk
Phone: +4575724477

-----Original Message-----
From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On
Behalf Of Simon Jespersen
Sent: 20. september 2002 15:12
To: Sun solaris help list
Subject: [SunHELP] script request!


Hi list!

I need a script for replacing a string in a number of files in a directory

i want to replace the string "nana" with the string "mona" in all *pl files
i wonder if anybody af a script or a easy way to do that.

Kind regards
Simon Jespersen
Project engineer
Pine Tree Systems A/S
Damhaven 5d
DK-7100 Vejle
Email: shj at pine.dk
Phone: +4575724477
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list