Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DISP='false'
- TIME='false'
- while getopts "a:e:p t " option
- do
- case "$option"
- in
- a) TYPE=$OPTARG;;
- e) PATH=$OPTARG;;
- p) DISP='true';;
- t) TIME='true';;
- esac
- done
- if [ "$DISP" == 'false' ]; then
- OUTPUT_SORTED='0'
- else
- OUTPUT_SORTED='1'
- fi
- if [ "$TIME" == 'false' ]; then
- OUTPUT_TIME='0'
- else
- OUTPUT_TIME='1'
- fi
- if [ "$TYPE" == "stdsort" ]; then
- ./a.out $PATH $OUTPUT_SORTED $OUTPUT_TIME
- else
- python ./sorts.py $TYPE $PATH $OUTPUT_SORTED $OUTPUT_TIME
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement