From: Nicolas Boisselier Date: Wed, 3 May 2023 21:51:26 +0000 (+0200) Subject: --total X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=53d746b15750757a53de4d85f0674f92b5651e0f;p=nb.git --total --- diff --git a/bin/csv2human b/bin/csv2human index ab93d964..c0645304 100755 --- a/bin/csv2human +++ b/bin/csv2human @@ -27,6 +27,7 @@ my $DEBUG = $main::DEBUG = 0; my %Opt = ( 'header' => 1, + 'total' => 1, 'sep' => "\t", ); get_options(\%Opt); @@ -113,7 +114,7 @@ while (my $line = shift @lines) } print $sep_line; -print "$tot Records\n" if $VERBOSE; +print "$tot Records\n" if $Opt{total}; ################################################################################# # @@ -225,6 +226,7 @@ Description! -option[header|h!] Print or not header separotor after first row -option[sep|s=s] Separtor + -option[total|t!] Print number of total record (default: $Opt{total}) -option[format|f!] Only format according to option --sep. Usefull for coding -option[verbose|v+] Verbose mode: increase the verbosity level. -option[debug+] Debug mode: increase the verbosity level.