diff --git a/preparations.sh b/preparations.sh index 97daa15..bd7779f 100755 --- a/preparations.sh +++ b/preparations.sh @@ -9,7 +9,7 @@ sed 1d who_suicide_statistics.csv | shuf > data.shuf # Ilosc wierszy NUMROWS=$(cat data.shuf | wc -l) echo "Initial number of rows ${NUMROWS}" -echo '{print $1}' +echo $1 CUTOFF=$1 DELETE=$((NUMROWS - CUTOFF)) echo "Cutting ${CUTOFF} rows"