Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.unix.shell Subject: Re: a sed question Date: Sat, 21 Dec 2024 16:26:59 -0800 Organization: None to speak of Lines: 24 Message-ID: <87zfkov9yk.fsf@nosuchdomain.example.com> References: <874j304vv3.fsf@example.com> <87ed21xmb3.fsf@example.com> <87bjx4ww71.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 22 Dec 2024 01:27:21 +0100 (CET) Injection-Info: dont-email.me; posting-host="05490bf84a23842e58914ee4885380df"; logging-data="317765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19N8Lm+2Hbos52wLGtdRkar" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:1D50IrI5dKszZGGCWn0I2BpsN9Y= sha1:3Ap/h6JECnFZboiVaQ834snuUFw= Xref: csiph.com comp.unix.shell:26009 Janis Papanagnou writes: [...] > Of course, if you can _reduce_ the amount of data at an early stage > (like in your 'git -n 1' sample) the earlier the better! (My 'git', > BTW, doesn't seem to support an option '-n'; which might be another > reason to let a standard tool like Awk do the task for which it has > been defined, text-processing.) What version of git are you using? Note that "-n 1" is an argument to "git log", not to "git". "git -n 1" is an error, as is "git -n 1 log". "git log -n 1" should work. The "-n" option can also be given as just the number: git log -1 or as a long option: git log --max-count=1 -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */