Re: How to do dos2unix for entire directory

2005-11-17 Thread Chris Devers
On Wed, 16 Nov 2005, Bob Showalter wrote: Santosh Reddy wrote: I want to convert all the files which are in dos format to UNIX format. perl -pi -e 's/\cM$//' * Running this on a directory of image files would be painful :-) While dos2unix seems like a simple enough utility, modern

How to do dos2unix for entire directory

2005-11-16 Thread Santosh Reddy
Hi All, I want to convert all the files which are in dos format to UNIX format. We have the command in UNIX called dos2unix but it takes file as input. But I would like give a directory as an argument to the command and it should convert all the dos files into UNIX format. And it should keep

RE: How to do dos2unix for entire directory

2005-11-16 Thread Timothy Johnson
Check out the File::Find module. It should come standard with your Perl distribution. -Original Message- From: Santosh Reddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 11:02 AM To: 'Perl Beginners' Subject: How to do dos2unix for entire directory Hi All, I want

RE: How to do dos2unix for entire directory

2005-11-16 Thread Santosh Reddy
Reddy; Perl Beginners Subject: RE: How to do dos2unix for entire directory Check out the File::Find module. It should come standard with your Perl distribution. -Original Message- From: Santosh Reddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 11:02 AM To: 'Perl Beginners

Re: How to do dos2unix for entire directory

2005-11-16 Thread Bob Showalter
Santosh Reddy wrote: I want to convert all the files which are in dos format to UNIX format. perl -pi -e 's/\cM$//' * -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response