#!/usr/bin/env bash if curl --head --silent "$1" > /dev/null 2>&1; then curl $1 | urlview else notify-send "Invalid URL $1" fi