diff --git a/script.sh b/script.sh index f9b5f56..68bef92 100644 --- a/script.sh +++ b/script.sh @@ -1,9 +1,9 @@ #!/bin/bash curl -LO https://git.wmi.amu.edu.pl/s430705/ium_430705/raw/branch/master/imdb_movies.csv -head -n -1 imdb_movies.csv | tail -n +"${CUTOFF}" > imdb_movies.csv | shuf > imdb_movies.csv.shuf -wc -l imdb_movies.csv -head -n 4600 imdb_movies.csv.shuf > test.csv -head -n 4600 imdb_movies.csv.shuf | tail -n 4600 > dev.csv -tail -n 13800 imdb_movies.csv.shuf > train.csv -wc -l *.csv +shuf ./imdb_movies.csv > ./imdb_movies2.csv | tail -n +5 > ./imdb_movies2.csv +wc -l ./imdb_movies.csv +head -n 4600 ./imdb_movies2.csv > ./test.csv +head -n 4600 ./imdb_movies2.csv | tail -n 4600 > ./dev.csv +tail -n 13800 ./imdb_movies2.csv > ./train.csv +wc -l ./*.csv