Open cristina-abad opened 8 years ago
The current version of generate_cdf.sh does not do any input validation, does not print error messages, etc. The code should be augmented so that it can be used by other people. This includes:
El contenido de generate_cdf.sh es:
FNAME=$1
SUM=cat $FNAME | awk '{s+=$2}; END{print s}'
cat $FNAME | awk '{s+=$2}; END{print s}'
cat $FNAME | awk -v sum=$SUM '{p=$2/sum; c+=p; print $1, $2, p, c}'
The current version of generate_cdf.sh does not do any input validation, does not print error messages, etc. The code should be augmented so that it can be used by other people. This includes: