nl: new applet; also implement cat -nb (similar functionality to nl)
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 5 Apr 2017 16:17:17 +0000 (18:17 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 5 Apr 2017 16:17:17 +0000 (18:17 +0200)
commitd88f94a5df3a2edb8ba56fab5c13674b452f87ab
treeabfed9c655cf1c436dac9e4089d7838c36e6e221
parent5d561ef6349b4b6e1d12ad6638acb46abf1eeca6
nl: new applet; also implement cat -nb (similar functionality to nl)

function                                             old     new   delta
nl_main                                                -     201    +201
print_numbered_lines                                   -     115    +115
cat_main                                              36     149    +113
static.nl_longopts                                     -     106    +106
packed_usage                                       31081   31182    +101
applet_main                                         1488    1492      +4
applet_names                                        2575    2578      +3
applet_suid                                           93      94      +1
applet_install_loc                                   186     187      +1
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 6/0 up/down: 645/0)             Total: 645 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/cat.c
coreutils/nl.c [new file with mode: 0644]
include/libbb.h