Avoid Connection Errors in Bash Scripts By Verifying URLs: Here's How
Look before you leap.
When youre coding, assumption is the enemy of robustness. Check web addresses before you use them to verify theyre correctly formed and online. These techniques check URLs and gracefully handle error conditions.