vpalos.com // milk, cookies, segfaults…

Bash URI parser using SED

by Valeriu Paloş on November 16, 2009

Warning! This version is now obsolete! Check out the new and improved version (using only Bash built-ins) here! Here is a command-line (bash) script that uses sed to split the segments of an URI into usable variables. It also validates the given URI since malformed strings produce the text “ERROR” which can be handled accordingly: […]