[Techtalk] winmodem hsfconfig problem

Devdas Bhagat devdas at dvb.homelinux.org
Sat Jun 12 21:04:15 EST 2004


On 12/06/04 09:32 +0200, Gebhard Dettmar wrote:
<snip>
> It's a shell-script, so the shebang is:
> ---snip---
> #!/bin/sh
Can you show the output of file(1) on this script?

I have a feeling that it was mishandled by a Microsoft Windows system
and the line termination is messed up.
If the file says DOS line endings, then that is definitely the case.

You could run dos2unix(1) on the file to fix it.

If you do not have do2unix, perl -pi -e's/\r\n/\n/' file
works just as well.

Devdas Bhagat


More information about the Techtalk mailing list