πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #24440

Re: Wie strip'e ich ein file?

#24440
From: Andreas Umbach
Date: Mon, 08 Feb 1999 00:00
18 lines
1266 bytes
Adrian Sieber <Adrian.Sieber@unifr.ch> wrote:
: In article <79l4fj$mvf$1@online-5.internetplus.ch>,
: 	"Markus StοΏ½ssi" <Webmaster@msi.ch> writes:
:> Und wie mache ich das?
:> Illegal character \015 (carriage return) at /home/cgi-bin/hi5.pl line 2.
:> [Sun Feb  7 23:34:12 1999] [error] (Maybe you didn't strip carriage
:> returns after a network transfer?)

: cat hi5.pl | tr -d '\r' > hi5-without-cr.pl

perl -npe 's/\r//'; -i hi5.pl

Ist noch kuerzer und spart uns das 'mv hi5-without-cr.pl hi5.pl'.
Alternativ (falls es mehrere Skripte sind):

perl -npe 's/\r//'; -i *pl

- Andreas
Technical Details
Message-ID: <36bf4737.0@poseidon>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <79l4fj$mvf$1@online-5.internetPLUS.ch> <36bef77d.0@siufuxsun02.unifr.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f4b73,1e7d04ada64182e0
X-Google-Attributes: gidf4b73,public
From: Andreas Umbach <aumbach@stud-hg.ethz.ch>
Subject: Re: Wie strip'e ich ein file?
Date: 1999/02/08
Message-ID: <36bf4737.0@poseidon>
X-Deja-AN: 442104363
Content-Transfer-Encoding: 8bit
Sender: Andreas Umbach <aumbach@slab2.ethz.ch>
References: <79l4fj$mvf$1@online-5.internetPLUS.ch> <36bef77d.0@siufuxsun02.unifr.ch>
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: 8 Feb 1999 21:21:13 +0100, lesposeidon.inf.ethz.ch
MIME-Version: 1.0
User-Agent: tin/pre-1.4-980618 (UNIX) (SunOS/5.6 (sun4u))
Newsgroups: ch.comp.os.linux