Re: need help with a sed script

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Brown
Date:  
To: nathan, Main PLUG discussion list
Subject: Re: need help with a sed script
> I absolutely just do not understand sed...
> I have a ton of files and scripts I've collected over the years. Through the
> course of time I was adopted and my name was changed, now I am changing it
> back to my original name and I want to change my nme in all my scripts...
> this is lame and tedious no doubt, but something for fun.
>
> All my scripts are located in a series of folders contained under my Documents
> folder. Basically, I need to find every file that contains the word 'England'
> and replace it with 'Aubrey'
>
> Can someone help please?


find . -name 'somefile' | xargs perl -ne 's/England/Aubrey/'
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss