Link to home
Start Free TrialLog in
Avatar of asago
asago

asked on

search/replace

I have a bunch of files that all end in
*.sql*
I need to replace all of the ";" with " ".
I have a little script called sr.cgi but it only works one file at a time.  Can anyone tell me a quick command line way to do this?
Avatar of n0thing
n0thing
Flag of United States of America image

Do you have perl on your system ??
Avatar of mikegrb
mikegrb

you should also be able to accomplish what it appears you desire with sed
Avatar of asago

ASKER

I have access to both.
Avatar of ozo
What command line are you now using?
ASKER CERTIFIED SOLUTION
Avatar of mikegrb
mikegrb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
 or
perl -i -pe 'tr/;/ /' *.sql*
Yes, tr/// would be faster and I guess print isn't required

. /me consults docs ...

yes print isn't required as ozo the master of all things technologically related has pointed out (note this *IS* a complement meant to be taken positivley :)
Avatar of asago

ASKER

Thanks!