From 29ecbd3d5795a1dbad02514686433269a1049557 Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 28 Mar 2021 19:15:39 +0200 Subject: [PATCH] add subscript for zadanie6 --- Jenkinsfile_create_dataset | 3 ++- script-zadanie-2-4-cutoff.sh | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 script-zadanie-2-4-cutoff.sh diff --git a/Jenkinsfile_create_dataset b/Jenkinsfile_create_dataset index 4836aef..6cf5099 100644 --- a/Jenkinsfile_create_dataset +++ b/Jenkinsfile_create_dataset @@ -13,7 +13,8 @@ pipeline { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh 'chmod +x script-zadanie-2-4.sh' sh './script-zadanie-2-4.sh' - sh "head -n ${params.CUTOFF} train.csv > train.csv" + sh 'chmod +x script-zadanie-2-4-cutoff.sh' + sh "./script-zadanie-2-4-cutoff.sh ${params.CUTOFF}" } } } diff --git a/script-zadanie-2-4-cutoff.sh b/script-zadanie-2-4-cutoff.sh new file mode 100644 index 0000000..317036a --- /dev/null +++ b/script-zadanie-2-4-cutoff.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +mv train.csv temp.csv +head -n $1 temp.csv > train.csv