Re: [hackers] [sbase][PATCH] Add tac(1)

From: Laslo Hunhold <dev_AT_frign.de>
Date: Tue, 27 Dec 2016 16:07:01 +0100

On Tue, 27 Dec 2016 16:05:19 +0100
Mattias Andrée <maandree_AT_kth.se> wrote:

Hey Mattias,
 
> I actually use tac(1) a lot, but I can't think of anything
> I have used it for right now. However, it can be used for
> reversing the output after sort(1), however POSIX specifies
> -r for sort(1p) which does this, but chances are your common
> user is not aware of this.

but sort(1) requires sorted input, whereas tac(1) can operate on any
input.

> I can't see the rationale for adding this behaviour to tail(1).
> If it is added to tail, the flag would do two things instead
> of one thing: reversing the output, and output the entire file.
> It would make more sense to add it to cat(1), perhaps you
> men to write “cat”. I would think that this is a good idea,
> but since tac(1) already exists and -r for cat(1) doesn't, I
> think it is better to go with tac(1), but I'm flexible.

What do the others think?

Cheers

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Tue Dec 27 2016 - 16:07:01 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 16:12:21 CET