tail(1): Implement tac(1) as the reverse version of cat(1)

Operating Systems / DragonFlyBSD - Aaron LI [aaronly.me] - 20 June 2020 07:10 UTC

The tac(1) is the reverse version of cat(1) and is implemented with 'tail -rq'.

Update cat.1, rev.1 and tail.1 man pages to mention the new tac(1).

The tac.1 man page is obtained from NetBSD. The implementation is also inspired by NetBSD but is different.

b743b76f8c tail(1): Implement tac(1) as the reverse version of cat(1)
bin/cat/cat.1 | 4 ++--
usr.bin/rev/rev.1 | 5 ++--
usr.bin/tail/Makefile | 4 +++-
usr.bin/tail/tac.1 | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
usr.bin/tail/tail.1 | 3 ++-
usr.bin/tail/tail.c | 23 ++++++++++++++----
6 files changed, 93 insertions(+), 10 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share