You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This program reads a 2 fields tab separated files and using
# the first field as index it collapses the file putting the
# second field values all on the same line separated by commas.
# If the -s option is provided it sums up all the second field
# values having the same index. The input file must be sorted by the index.
#
#
#
#
INPUT="NONE"
while getopts "sh" opt
do
case $opt in
(s) SUM=1;;
(h) HELP=1;;
esac
done
if [ $HELP ] ; then
echo -e "This program reads a 2 fields tab separated files and using the first field as index it collapses the file putting the second field values all on the same line separated by commas.\n\n If the -s option is provided it sums up all the second field values having the same index. The input file must be sorted by the index."