add cutoff

This commit is contained in:
michalzareba 2021-03-28 20:30:56 +02:00
parent 4eef8ce2a4
commit 229ac0bd0c
2 changed files with 2 additions and 1 deletions

1
Jenkinsfile vendored
View File

@ -14,6 +14,7 @@ pipeline{
}
stage('sh: Shell Script'){
steps{
withEnv(["CUTOFF=${params.CUTOFF}"])
./script.sh
}
}

View File

@ -1,7 +1,7 @@
#!/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 | shuf > imdb_movies.csv.shuf
head -n -1 imdb_movies.csv | tail -n +$((${CUTOFF}+1)) > 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