On 20/06/2005, at 9:36 AM, David wrote:
I need to go through an entire directory replacing foo.bar with bar.foo
within each file and at the same time I also need to replace macintosh
line breaks with unix ones.



perl -i -pe 's/foo.bar/bar.foo/g;s/\r/\n/g' <filename(s)>

--
Tony Green <[EMAIL PROTECTED]>

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to