Article View: news.software.readers
Article #24879Re: slrn patching woes
From: evenh
Date: Mon, 12 Aug 1996 00:00
Date: Mon, 12 Aug 1996 00:00
51 lines
2694 bytes
2694 bytes
In article <slrn50s8r1.153.erisson@kallisti.sw-tech.com>, E. wrote: >On 11 Aug 1996 17:29:52 GMT, Steve Lamb <morpheus@destiny.calweb.com> wrote: >> On 10 Aug 1996 13:55:03 -0700, E. <erisson@kallisti.sw-tech.com> wrote: >> >> Block like 6 to end, run block through filter. When the filter returns >> the block is automatically replaced. >> >> >Um, vi IS god. :) >> >> And god cannot do that? JOE is god!! :) > >I think the problem here is that >I< cannot do that, not that vi can't. :) I don't know about vi beeing god, but I do know vi is good! Lets say you have the file: 1 line 2 line 8 line 7 line 6 line 5 line 4 line 3 line As one may easily see. Lines 3 to 8 are reversed. Command in vi to reverse these lines: :3,$!sort -r (If you are reading this using vi (?) then goto the '8 line'-line and type :.,+5!sort to get the normal order of the lines.) Alternatively: :.,$!sort -r which is normal english is. Pipe output from current line to end of file to command sort -r and replace lines with output! (In other words this last version demands you standing on the starting line from where you would stand). It should be unnecessary to mention that you might use any command instead of the given sort-command. (This message is brought to you through the use of vi... All command example given are tested and does work as stated. ) -- \\\|||/// \ Even Holen, Berg Presteg�rd, Jonsvannsvn 45, N-7016 Trondheim \\ ~ ~ // \ mailto:evenh@stud.ntnu.no, Even.Holen@unimed.sintef.no | @ @ | \ www: http://www.stud.ntnu.no/~evenh/ oOo (_) oOo \ 'Christians are not perfect they are forgiven'
Technical Details
Message-ID:
<slrn50u323.mb2.evenh@storm.stud.ntnu.no>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!not-for-mailReferences:
<slrn50p6rp.3u.erisson@kallisti.sw-tech.com> <slrn50p79k.he1.davis@aluche.mit.edu> <slrn50pc8o.1oj.erisson@kallisti.sw-tech.com> <slrn50plfm.jf.morpheus@destiny.calweb.com> <slrn50ppvu.bs.erisson@kallisti.sw-tech.com> <slrn50ps8h.n7.morpheus@destiny.calweb.com> <slrn50pu1f.gb.erisson@kallisti.sw-tech.com> <slrn50s6re.d9.morpheus@destiny.calweb.com> <slrn50s8r1.153.erisson@kallisti.sw-tech.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn50u323.mb2.evenh@storm.stud.ntnu.no> Subject: Re: slrn patching woes Date: Mon, 12 Aug 1996 00:00:00 +0000 From: evenh@stud.ntnu.no () References: <slrn50p6rp.3u.erisson@kallisti.sw-tech.com> <slrn50p79k.he1.davis@aluche.mit.edu> <slrn50pc8o.1oj.erisson@kallisti.sw-tech.com> <slrn50plfm.jf.morpheus@destiny.calweb.com> <slrn50ppvu.bs.erisson@kallisti.sw-tech.com> <slrn50ps8h.n7.morpheus@destiny.calweb.com> <slrn50pu1f.gb.erisson@kallisti.sw-tech.com> <slrn50s6re.d9.morpheus@destiny.calweb.com> <slrn50s8r1.153.erisson@kallisti.sw-tech.com> 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!not-for-mail X-Deja-AN: 173668660 Content-type: text/plain; charset=iso-8859-1 Organization: The Norwegian University of Science and Technology Mime-version: 1.0 Newsgroups: news.software.readers