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