From owner-freebsd-questions Tue Oct 22 12:23:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DBE637B401 for ; Tue, 22 Oct 2002 12:23:16 -0700 (PDT) Received: from priv-edtnes04.telusplanet.net (fepout2.telus.net [199.185.220.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82D4343E4A for ; Tue, 22 Oct 2002 12:23:15 -0700 (PDT) (envelope-from tcooper1@telusplanet.net) Received: from donatev49iknkl ([205.206.105.251]) by priv-edtnes04.telusplanet.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20021022192310.SAOH5777.priv-edtnes04.telusplanet.net@donatev49iknkl>; Tue, 22 Oct 2002 13:23:10 -0600 Message-ID: <000501c27a09$70c9e890$fb69cecd@donatev49iknkl> From: "Terry Cooper" To: "Jerry McAllister" , "Roger 'Rocky' Vetterberg" Cc: "John Bleichert" , References: <200210221436.g9MEaZw17930@clunix.cl.msu.edu> Subject: Re: FreeBSD bootable floppy Script NOT WORKING Date: Tue, 22 Oct 2002 13:27:28 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, I'm not sure what it was but it wasn't the carnage return. But there is a hidden character. I did some simple scripts and the same code works when I re-typed the entire thing. The only parts that were effected were the encapsulated EOF tags. So there must have been some type of hidden character. Thanks for all the help. ----- Original Message ----- From: "Jerry McAllister" To: "Roger 'Rocky' Vetterberg" Cc: "John Bleichert" ; "Terry Cooper" ; Sent: Tuesday, October 22, 2002 7:36 AM Subject: Re: FreeBSD bootable floppy Script NOT WORKING > > > > John Bleichert wrote: > > > > *snip* > > > > > * EOM is not a command, it's an end-of-text marker, similar to the one > > > used in Perl. > > > > > > * There are text-file incompatibilities between Unix and DOS. If you're > > > copying/pasting the file from the website in Windows, ftp'ing it to a Unix > > > box and then trying to run it, all those extra linefeeds may cause > > > extremely bizzare errors. > > > > > > I hate to say it, but if you can only get the Internet on your winbox, you > > > should probably fire up vi (or whatever editor you like) and enter it > > > manally. Or run a dos2unix utility on the script on your Unix box to set > > > it up and clear out those linefeeds. > > > > A simple command like "perl -i.bak -npe 's/\r\n/\n/g' filename" will > > clear the linefeeds and even make a backup of the file. (It has never > > failed me, but you'll never know) > > I sort of doubt that extra CARRIAGE RETURNs (CR not Linefeeds LF) in the > file are what is causing his problems, but it may be. But, if you want > to get rid of all those extra returns there is an easy way - use 'tr' > This works well: > tr -d "\r" < INPUTFILE > OUTPUTFILE > > If you ftp text from a DOS environment to a UNIX environmtent, > then just set is to ASCII mode (type 'ascii' after the ftp session is > connected) and it will take care of managing the extra characters > very nicely with no other intervention needed. > > ////jerry > > > > > -- > > R > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message