vpalos.com // milk, cookies, segfaults…

URI parsing using Bash built-in features

by Valeriu Paloş on February 3, 2010

A bit of background A while ago I posted an article describing how one could parse complete URIs in Bash using the sed program. Since then, I have realized that there is a better way to do it, a much better way: via Bash built-in pattern matching!  Here are some benefits of this improvement: It […]