Commit Graph

20 Commits

Author SHA1 Message Date
eadler c197dbace7 [tail] Fix type of 'len'
ok pgoyette
2018-03-06 03:33:26 +00:00
wiz 696f76c399 Sort options.
-qv are not specific to -r, so separate them.
Add -q and -v descriptions to the general option table.
2017-10-02 08:23:23 +00:00
maya 9b177b90f0 Add arguments to tail:
-q: suppress filename headers when multiple files are used
  -v: print filename headers even when only one file is used

head already supports the same arguments, which originated in GNU head.
GNU tail also has the same flags.


Add tac, a hard link to 'tail -rq'.
Prints a file in reverse line order.

Similar to GNU tac, but lacking any options.

Add accompanying documentation.
2017-10-01 20:49:24 +00:00
wiz 405ebbdc66 Add comma after i.e.
From Bug Hunting.
2013-01-31 23:09:06 +00:00
christos d44b4781e6 minor knf, no functional change. 2011-09-03 10:59:10 +00:00
christos 56b933f4a2 Instead of declaring our own err() which is different than the standard one,
and using it incorrectly in a few places because of confusion (does it print
errno or not?), declare two versions following the standard ones xerrx and,
xerr, and use those as appropriate, implementing them using them vwarn and
vwarnx.
2011-09-03 09:02:20 +00:00
lukem 0980aab530 Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare)
XXX: need a "cleaner" way to do the check in reverse.c, as a general rule
2009-04-13 23:33:25 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
itojun 7551fb024f do not use long for file offset, use off_t. otto@openbsd 2004-02-16 21:57:04 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 6a949dc545 minor KNF 2003-07-14 09:30:52 +00:00
wiz 3c4c9d2b57 Remove #if __STDC__. De-__P() and ANSIfy. 2002-06-14 00:41:42 +00:00
wiz 0deefd986b Add -F to usage, per bin/16558 by Ryan Younce. 2002-04-29 20:12:31 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
cjs 4d03919ab5 Add -F option to follow files though rotations and truncations. 1998-02-09 22:39:41 +00:00
lukem 079884da30 WARNSify, fix .Nm usage, deprecate register, getopt returns -1 not EOF 1997-10-19 23:45:08 +00:00
jtc ae646d0e62 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-11-23 07:41:55 +00:00
deraadt 907eea9f85 various off_t fixes 1994-04-24 20:19:17 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
glass aa97860f48 tail from ftp.uu.net:bsd-sources integrated 1993-04-30 08:04:52 +00:00