[Techtalk] winmodem hsfconfig problem

Gebhard Dettmar gebhard.dettmar at student.hu-berlin.de
Sat Jun 12 19:10:21 EST 2004


techtalk-bounces at linuxchix.org scribbled on Saturday, June 12, 2004
5:34 PM

> 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.
I don't think so. I should see this in vi. You mean those ^M or
whatever it looks like

> 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.
Great. I was always looking for this ;-)
> 
> Devdas Bhagat
regards gebhard




More information about the Techtalk mailing list