Article View: news.software.readers
Article #126878Re: [slrn] not applying Xnews generated score file
From: GregMo
Date: Mon, 23 Jun 2003 05:08
Date: Mon, 23 Jun 2003 05:08
34 lines
2294 bytes
2294 bytes
DC <dcmoose@myrealbox.com> wrote in news:bd5ve3$pac7a$5@ID-
120562.news.dfncis.de:
>> tr -d '\r' < oldfile > newfile
>
> OK, I see how this will delete 'returns' and save to a new file. Of
> course, not knowing *how* line feeds work in linux, I expect this will
> yield one very looong line, unless I'm mistaken [1].
You're mistaken. Windows uses a CR/LF pair to terminate a line of text
whereas posix systems use only a LF (aka 'newline'). You're only removing
the CR.
\character
A backslash followed by certain special characters maps to
special values.
\f <form-feed>
\n <newline>
Now if you use something like this: tr -d '\r\n'
...then you'd end up with one really long line :-)
Cheers,
GregMo
--
The shortest sentence in the English language: "No."
The longest sentence in the English language: "I do."
UNIX Sex
{look;find;talk;grep;touch;finger;find;flex;unzip;mount;workbone;
fsck;yes;gasp;fsck;yes;eject;umount;makeclean;zip;split;done;exit}
Technical Details
Message-ID:
<Xns93A2E1501BAD1GregnospamMoWyldplea@216.168.3.44>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<bd5bu7$peip2$1@ID-120562.news.dfncis.de> <slrnbfcemt.im.removethis@gmx.net> <bd5gcm$p8i07$2@ID-120562.news.dfncis.de> <m3y8ztlblv.fsf@apk.net> <bd5ve3$pac7a$5@ID-120562.news.dfncis.de>Show Full Headers
Complete Article Headers
Message-ID: <Xns93A2E1501BAD1GregnospamMoWyldplea@216.168.3.44>
Subject: Re: [slrn] not applying Xnews generated score file
Date: Mon, 23 Jun 2003 05:08:43 -0000
From: GregMo <Greg-nospam-Mo@Wyld-please-Ryde.net>
References: <bd5bu7$peip2$1@ID-120562.news.dfncis.de> <slrnbfcemt.im.removethis@gmx.net> <bd5gcm$p8i07$2@ID-120562.news.dfncis.de> <m3y8ztlblv.fsf@apk.net> <bd5ve3$pac7a$5@ID-120562.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Not Your Company
User-Agent: Xnews/5.04.25
X-Face: -v4;1|PCBU*DjLP?O-~~l6NeO^CS<ePGFo^n~d&RKYr3US2Q;eTn<7:MJ?=I</onRpe>5F9q<(MYsr*NqL8tB]F<<\e(?'NZ@`0HC]<?+q+pEm$#=TR#$"-;nVunwP("6)JOlZ]]60mHAC7%%)~UkA3}WfJ*h\E]'K,xUNo=
X-Is-Tenshul: Does this header really exist if you don't read it?
X-Complaints-To: abuse@supernews.com
Lines: 33