This commit is contained in:
Maciej 2021-03-29 02:32:50 +02:00
parent 08826dbe52
commit 68d3a70023

View File

@ -9,7 +9,8 @@ sed 1d who_suicide_statistics.csv | shuf > data.shuf
# Ilosc wierszy # Ilosc wierszy
NUMROWS=$(cat data.shuf | wc -l) NUMROWS=$(cat data.shuf | wc -l)
echo "Initial number of rows ${NUMROWS}" echo "Initial number of rows ${NUMROWS}"
DELETE=$((NUMROWS - $1)) CUTOFF=$1
DELETE=$((NUMROWS - CUTOFF))
echo "Cutting $1 rows" echo "Cutting $1 rows"
tail -n $DELETE data.shuf > data.shuf.cut tail -n $DELETE data.shuf > data.shuf.cut