Refactor for stdin piping
Refactor for stdin piping

The script now allows for piping (instead of using input and output
files). It still allows to add a single argument (url) for standalone
processing.

Main script functionality thanks to code in SO answer:
http://stackoverflow.com/a/11326239/1253966
Kudos to user495470

Additional resources:

http://mywiki.wooledge.org/BashFAQ/001
http://stackoverflow.com/questions/6980090/how-to-read-from-file-or-stdin-in-bash
http://superuser.com/questions/747884/how-to-write-a-script-that-accepts-input-from-a-file-or-from-stdin

adeluccar/unpack-tco-url