diff options
author | Cormac Morris <cormacmorris@hotmail.com> | 2015-11-09 13:40:59 +0000 |
---|---|---|
committer | Cormac Morris <cormacmorris@hotmail.com> | 2015-11-09 13:40:59 +0000 |
commit | c66d1e5d1fdc48641743e953e0134a5318459a18 (patch) | |
tree | 8ff49604dd6db5cdb265d0c30598bc6aa4be277c /cleanupbusinfo.sh |
First instance of script
Diffstat (limited to 'cleanupbusinfo.sh')
-rwxr-xr-x | cleanupbusinfo.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cleanupbusinfo.sh b/cleanupbusinfo.sh new file mode 100755 index 0000000..398b1a7 --- /dev/null +++ b/cleanupbusinfo.sh @@ -0,0 +1,25 @@ +for n in "$@" ; do + sed -i '/<td class="StopHeader"><span>Dep/d' "$n" + sed -i '/<td class="StopHeader"><img alt="direction arrow/d' "$n" + sed -i '/<td class="StopHeader"><span>Dep/d' "$n" + sed -i '/<td class="StopHeader"><span><\/span><\/td>/d' "$n" + sed -i '/<th><span>.*<\/span>/d' "$n" + sed -i '/<\/tr>, <tr>/d' "$n" + sed -i '/<\/tr>, <tr>/d' "$n" + sed -i '/<!--<td><span>Dep<\/span><\/td> -->/d' "$n" + sed -i '/<td><span>.*<\/span><\/td>/d' "$n" + sed -i '/<td class=.*> <\/td>/d' "$n" + sed -i '/<td class="end-row"> <\/td>/d' "$n" + sed -i 's/<td>//g' "$n" + sed -i 's/<\/td>//g' "$n" + sed -i 's/<th class="StopHeader"><span>//g' "$n" + sed -i 's/<\/span><\/th>//g' "$n" + sed -i 's/<h2>//g' "$n" + sed -i 's/<\/h2>//g' "$n" + sed -i 's/<tr>//g' "$n" + sed -i 's/\[//g' "$n" + sed -i 's/<\/tr>, //g' "$n" + sed -i 's/<\/tr>, Your feedback]//g' "$n" + sed -i 's/<\/tr>, //g' "$n" + sed -i '/^.\{,3\}$/d' "$n" +done |