added tsvsummaryin path. skel/disp automates lxpanel positioning

This commit is contained in:
ville rantanen
2014-11-11 10:33:53 +02:00
parent 19c09ff4f5
commit c3b33e0505
3 changed files with 61 additions and 10 deletions

View File

@@ -11,8 +11,8 @@ Usage: tsvsummary [-c column] [-t type] tsv_file
-t Type of statistics: mean, max, min, sum, stdev, nas, unique
-h Help
'
}
TYPEOF=mean
TYPELIST=( mean max min sum stdev nas unique )
while getopts c:ht: opt
@@ -45,6 +45,9 @@ then usage
exit 1
fi
which ncsv &> /dev/null || ( echo ncsv required: "https://code.google.com/p/nicecsv/"; exit 1 )
which csvcut &> /dev/null || ( echo csvkit required: "https://csvkit.readthedocs.org/"; exit 1 )
if [ -z "$LABEL" ]
then ncsv --stat "$1" | sed -n "1p;/^$TYPEOF/Ip"
exit