From 961e10926e9e369ddeaeca9c7dc70dd38666e775 Mon Sep 17 00:00:00 2001 From: Karolina Oparczyk Date: Mon, 17 May 2021 20:53:03 +0200 Subject: [PATCH] remove empty lines --- get_data.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get_data.sh b/get_data.sh index fb313e2..9f91553 100755 --- a/get_data.sh +++ b/get_data.sh @@ -8,6 +8,7 @@ if kaggle datasets download -d sgonkaggle/youtube-trend-with-subscriber && unzip head -n 544 "data_shuf" > "data_test" head -n 1088 "data_shuf" | tail -n 544 > "data_dev" head -n 5441 "data_shuf" | tail -n 4352 > "data_train" - sed '/^\n$/d' "data_dev" + tr '\n' '' < "data_dev" + sed '/^$/d' "data_dev" python3 get_data.py USvideos_modified.csv fi \ No newline at end of file