check cutoff value

This commit is contained in:
s495716 2024-03-20 17:25:00 +01:00
parent 93f452556f
commit 33f86d03e2

View File

@ -20,7 +20,8 @@ if [[ "$1" == "--cutoff" ]]; then
echo "Error: cutoff value must be a positive number"
exit 1
fi
cutoff="$1"
cutoff=$(("$1" + 1))
echo "CUTOFF $cutoff"
fi
head -n "$cutoff" train.csv > cutoff_train.csv