deleted default cutoff, changed regex
This commit is contained in:
parent
318baf240a
commit
401903bd0e
@ -12,11 +12,10 @@ figlet "TESTSET AFTER ID COLUMN CUT"
|
|||||||
head -n 5 test_without_id_column.csv
|
head -n 5 test_without_id_column.csv
|
||||||
|
|
||||||
figlet "CUTOFF DATA FROM TRAIN SET"
|
figlet "CUTOFF DATA FROM TRAIN SET"
|
||||||
cutoff="10"
|
|
||||||
shift "$(($OPTIND - 1))"
|
shift "$(($OPTIND - 1))"
|
||||||
if [[ "$1" == "--cutoff" ]]; then
|
if [[ "$1" == "--cutoff" ]]; then
|
||||||
shift
|
shift
|
||||||
if [[ ! "$1" =~ ^[0-9]+$ ]]; then
|
if [[ ! "$1" =~ ^[1-9][0-9]*$ ]]; then
|
||||||
echo "Error: cutoff value must be a positive number"
|
echo "Error: cutoff value must be a positive number"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user