in reply to Cygwin perl... ftp... Windows line endings...
Can you use cygwin's dos2unix app?
If you have a number of these files, you can iterate over them using:
#!/usr/bin/perl $dirname = "."; opendir(DIR, $dirname) or die "can't opendir $dirname: $!"; while (defined($file = readdir(DIR))) { next if $file =~ /^\.\.?$/; system("dos2unix $file"); } closedir(DIR);
This'll try to convert directories, too, but you did say you were in a hurry.
Cē
I basically robbed The Perl Cookbook for more than 90% of this code. :)
|
|---|