[Tutor] Fwd: script in Raspberry pi python
Dave Angel
davea at davea.name
Tue Jul 30 16:36:12 CEST 2013
On 07/29/2013 10:42 PM, Kirk Bailey wrote:
> ok, I read linked article, then copied the perl script text, which bombs.
> The TEXT:
>
> * #!/usr/local/bin/perl -w**
> ** use strict;**
> **
> ** while (<STDIN>) {**
> ** s/\r\n/\n/;**
> ** print;**
> ** }*
>
> This works nicely, and all problems are solved. I tried to download the
> program using apt-get, but the site for it is not answering th bell, so
> I just typed this in. Thank you, it i just what the doctor ordered.
>
Puzzled why you didn't just use dos2unix, as I suggested 5 days ago.
It's in every Unix/Linux I've seen, and if not, it's as close as
Synaptic or apt.
--
DaveA
More information about the Tutor
mailing list