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?
*.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?
Do you have perl on your system ??
you should also be able to accomplish what it appears you desire with sed
ASKER
I have access to both.
What command line are you now using?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or
perl -i -pe 'tr/;/ /' *.sql*
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 :)
. /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 :)
ASKER
Thanks!