[Tutor] problems with the shebang line and linux

Alan Gauld alan.gauld at freenet.co.uk
Fri Feb 17 00:20:51 CET 2006


> Try this with the file
> 
> vi filename
> escape
> :%s/^M//
> 

Or just run the dos2unix command that comes with most Linux distros...

Or even use Python to write a script to strip() each line
and write it back with a \n...

In fact there's a prewritten script called crlf.py in the Tools folder of 
a standard Python install....

Alan G.




More information about the Tutor mailing list