trurl is a tool in a similar spirit of tr but for URLs. Here, 'tr' stands for translate or transpose.
trurl is a command line tool that parses and manipulates URLs, designed to help shell script authors everywhere.