Skip to content

Commit

Permalink
path_raw_gtfs.sh: optimize DELFI filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst authored and hbruch committed Jan 7, 2022
1 parent 0603f92 commit 0d1e2a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions patch_raw_gtfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ if [ "$1" == "DELFI" ]; then
# https://github.com/mfdz/GTFS-Issues/issues/71
grep -v '"",' "$gtfs_dir/stop_times.txt" | sponge "$gtfs_dir/stop_times.txt"
# https://github.com/mfdz/GTFS-Issues/issues/72
grep -v '"de:08236:2590:2",' "$gtfs_dir/stop_times.txt" | sponge "$gtfs_dir/stop_times.txt"
grep -v '"de:08316:6667:2:1",' "$gtfs_dir/stop_times.txt" | sponge "$gtfs_dir/stop_times.txt"
grep -v '"de:08326:8324:90:",' "$gtfs_dir/stop_times.txt" | sponge "$gtfs_dir/stop_times.txt"
grep -v '"de:09676:99310:90",' "$gtfs_dir/stop_times.txt" | sponge "$gtfs_dir/stop_times.txt"
cat "$gtfs_dir/stop_times.txt" \
| grep -v '"de:08236:2590:2",' \
| grep -v '"de:08316:6667:2:1",' \
| grep -v '"de:08326:8324:90:",' \
| grep -v '"de:09676:99310:90",' \
| sponge "$gtfs_dir/stop_times.txt"

set +x
fi
Expand Down

0 comments on commit 0d1e2a5

Please sign in to comment.