piping added and resolved the conflicts
This commit is contained in:
parent
3d778753a8
commit
80123d312d
1 changed files with 22 additions and 15 deletions
17
pert
17
pert
|
|
@ -67,7 +67,8 @@ function pert_table
|
|||
total_estimate=0
|
||||
total_standard_deviation=0
|
||||
total_variance=0
|
||||
for var in "$@"; do
|
||||
time=("$@")
|
||||
for var in "${time[@]}"; do
|
||||
|
||||
# counter iterator
|
||||
counter=$[$counter +1]
|
||||
|
|
@ -146,18 +147,24 @@ function pert_table
|
|||
|
||||
|
||||
# main
|
||||
if [ $# -eq 0 ]; then
|
||||
if [ ! -t 0 ];then
|
||||
time=$(cat -)
|
||||
pert_table ${time[@]}
|
||||
else
|
||||
if [ $# -eq 0 ]; then
|
||||
_help
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
case "$1" in
|
||||
*help|*h)
|
||||
_help
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
|
||||
pert_table $@
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue