remove empty lines

This commit is contained in:
Karolina Oparczyk 2021-05-17 20:53:03 +02:00
parent 142e30de1f
commit 961e10926e

View File

@ -8,6 +8,7 @@ if kaggle datasets download -d sgonkaggle/youtube-trend-with-subscriber && unzip
head -n 544 "data_shuf" > "data_test" head -n 544 "data_shuf" > "data_test"
head -n 1088 "data_shuf" | tail -n 544 > "data_dev" head -n 1088 "data_shuf" | tail -n 544 > "data_dev"
head -n 5441 "data_shuf" | tail -n 4352 > "data_train" 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 python3 get_data.py USvideos_modified.csv
fi fi