head breaks pipes lol

This commit is contained in:
Robert Bendun 2023-05-13 00:54:20 +02:00
parent 46c54bfdf8
commit c7362f4b15

View File

@ -41,5 +41,5 @@ if [ ! \( -f "stop_times.train.tsv" -a -f "stop_times.test.tsv" -a -f "stop_time
./split_train_valid_test.py
fi
cut -f3 stop_times.normalized.tsv | head -n1 > stop_times.categories.tsv
cut -f3 stop_times.normalized.tsv | tail -n +2 | uniq | sort | uniq >> stop_times.categories.tsv
head -n 1 stop_times.normalized.tsv | cut -f3- > stop_times.categories.tsv
tail -n +2 stop_times.normalized.tsv | cut -f3- | uniq | sort | uniq >> stop_times.categories.tsv