Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #29712
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Pozharski <whynot@pozharski.name> |
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Reading a file from the back |
| Date | Sat, 11 Apr 2020 15:22:16 +0300 |
| Organization | A noiseless patient Spider |
| Lines | 18 |
| Message-ID | <slrnr93djo.r2l.whynot@orphan.zombinet> (permalink) |
| References | <r6hq2v$5bd$2@dont-email.me> <r6i5kr$q9o$2@dont-email.me> <slrnr91hqg.8ub.jj@iridium.wf32df> <eli$2004101637@qaz.wtf> |
| Injection-Info | reader02.eternal-september.org; posting-host="ff815c24d0dbb817178026c7f6606e67"; logging-data="4048"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ou4JUmlrYKTrSZYa0Twpc" |
| User-Agent | slrn/pre1.0.0-18 (Linux) |
| Cancel-Lock | sha1:GwRa/HNxJsH4nIUJ4Pml7tJO25o= |
| X-Comment-To | Eli the Bearded |
| Xref | csiph.com comp.os.linux.misc:29712 |
Show key headers only | View raw
with <eli$2004101637@qaz.wtf> Eli the Bearded wrote:
> In comp.os.linux.misc, Jim Jackson <jj@franjam.org.uk> wrote:
>> On 2020-04-07, Rich <rich@example.invalid> wrote:
>>>> What is that command?
>>> If by "from the end upwards" you really mean "backwards" (as in
>>> reverse byte order) then 'tac' is the command you are looking for.
*SKIP*
> perl -ne '$all .= $_; END{ print scalar reverse $all }'
*SKIP*
> optimized the perl for readibility, not speed or code golf
perl's 'reverse' is pretty much speed optimized for many releases now.
Unfoturnately I still don't have perl-zoo thus I can't show it.
--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Reading a file from the back Dieter Britz <dieterhansbritz@gmail.com> - 2020-04-07 12:01 +0000
Re: Reading a file from the back Vasco Costa <vasco.costa@invalid.invalid> - 2020-04-07 12:12 +0000
Re: Reading a file from the back Fenris <fenris@invalid.invalid> - 2020-04-07 12:12 +0000
Re: Reading a file from the back Rich <rich@example.invalid> - 2020-04-07 15:18 +0000
Re: Reading a file from the back Jim Jackson <jj@franjam.org.uk> - 2020-04-10 19:21 +0000
Re: Reading a file from the back Eli the Bearded <*@eli.users.panix.com> - 2020-04-10 20:37 +0000
Re: Reading a file from the back Eric Pozharski <whynot@pozharski.name> - 2020-04-11 15:22 +0300
Re: Reading a file from the back Eli the Bearded <*@eli.users.panix.com> - 2020-04-13 01:03 +0000
Re: Reading a file from the back Eric Pozharski <whynot@pozharski.name> - 2020-04-13 11:16 +0300
Re: Reading a file from the back Eli the Bearded <*@eli.users.panix.com> - 2020-04-13 20:01 +0000
Re: Reading a file from the back Eric Pozharski <whynot@pozharski.name> - 2020-04-14 12:14 +0300
Re: Reading a file from the back Eli the Bearded <*@eli.users.panix.com> - 2020-04-14 16:50 +0000
Re: Reading a file from the back Rich <rich@example.invalid> - 2020-04-10 21:40 +0000
Re: Reading a file from the back The Natural Philosopher <tnp@invalid.invalid> - 2020-04-08 08:55 +0100
csiph-web