D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] windows newlines in #! line

 

On Thu, Jul 20, 2006 at 01:23:23PM +0100, Steve Marvell wrote:
> This started as a CGI problem. Apparently, some of the Perl scripts a
> particular company provide are littered with Windows newlines. This
> casuse a bad interpretor error.

Further to the previous answer, you can strip them out:
1) Upload via ftp in ascii mode, which should do conversions
2) Open vi, type ":%s/^V^M//g"

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html