Re: RE: [LIP] Problem executing scripts Bad Interpreter

Arun Sharma <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
On Wed, May 05, 2004 at 06:46:27PM +0530, Sridhar R wrote:
> >
> > perl -pi -e 's/\r//g' filename.txt
> >
> 
>   And if perl is also not available, use python ;)
> 
>   python -c "file('output.sh',
> 'w').write(file('input.sh').read().replace('\r\n','\n'))"

Moral of the story: languages good for large scale programming may not be good for one liners.

	-Arun


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.