From 8b5bef03dd71347c029ea6b5aaaba758a2fbf9a1 Mon Sep 17 00:00:00 2001 From: Maciej Date: Mon, 29 Mar 2021 02:34:31 +0200 Subject: [PATCH] . --- preparations.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preparations.sh b/preparations.sh index 4a26de3..434e7f1 100755 --- a/preparations.sh +++ b/preparations.sh @@ -9,9 +9,9 @@ sed 1d who_suicide_statistics.csv | shuf > data.shuf # Ilosc wierszy NUMROWS=$(cat data.shuf | wc -l) echo "Initial number of rows ${NUMROWS}" -CUTOFF=$1 +CUTOFF="$1" DELETE=$((NUMROWS - CUTOFF)) -echo "Cutting $1 rows" +echo "Cutting ${CUTOFF} rows" tail -n $DELETE data.shuf > data.shuf.cut # Podzial na 3 pozbiory