Re: binfmt_script and ^M

Jamie Lokier
2001-02-27T19:21:36Z

Ivo Timmermans wrote:
> > _should_ it work with the \r in it?
>
> IMHO, yes. This set of files were created on Windows, then zipped and
> uploaded to a Linux server, unpacked. This does not change the \r.

Use `fromdos' to convert the files. Or this little Perl gem, which
takes a list of files or standard input as argument:

#!/usr/bin/perl -pi
s/\r\n$/\n/

-- Jamie