ghead installation added

This commit is contained in:
patrycjalazna 2021-03-28 15:22:47 +02:00
parent a2b991907f
commit 2f272b6b44

2
avocado-preprocessing.sh Normal file → Executable file
View File

@ -10,6 +10,8 @@ grep -P "^$" -n avocado-updated-2020.csv
# usuniecie zbednej kolumny year (redundantne dane) # usuniecie zbednej kolumny year (redundantne dane)
cut -d -f12 --complement avocado-updated-2020.csv cut -d -f12 --complement avocado-updated-2020.csv
apt-get install ghead
ghead -n 1 avocado-updated-2020.csv> header.csv ghead -n 1 avocado-updated-2020.csv> header.csv
ghead -n -1 avocado-updated-2020.csv | shuf > avocado-updated-2020-shuf.csv ghead -n -1 avocado-updated-2020.csv | shuf > avocado-updated-2020-shuf.csv