Unix/Linux Go Back    

Find and Replace in multiple files (Shell script)

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member peter.herlihy Regarding:
Find and Replace in multiple files (Shell script).
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 08-21-2002   -   Original Discussion by jatins_s
peter.herlihy's Unix or Linux Image
peter.herlihy peter.herlihy is offline
Registered User
Join Date: Nov 2001
Last Activity: 1 August 2006, 11:51 AM EDT
Location: New Zealand
Posts: 333
Thanks: 0
Thanked 0 Times in 0 Posts
This is a bit simplier.

for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;