bash-2.05a$ comment.pl use: bad interpreter: No such file or directoryerlSo the problem is the line endings. There are a couple of ways to clean it up. One (unfortunately not available with OSX version of *nix) is the "unix2dos" command. The other method would be to do some sort of Perl (or sed) script to clean up the control characters. I think if you switch \015 (control-M or Carriage Return) for say \012 (control-L or Line Feed), you should be ok. Something along the lines of say:
#!/usr/bin/perl use warnings; use strict; my $in=$ARGV[0]; my $out=$ARGV[1]; open IN, "$in" or die "Can't do it man. $!"; open OUT, ">>$out" or die "Man, I can't do that. $!"; foreach (<IN>) { s/\015/\012/g; print OUT $_; } close IN; close OUT; exit;
I tried this out and it should do the trick. HTH
In reply to Re: Comments trouble
by nimdokk
in thread Comments trouble
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |