#!/bin/bash echo -n "$1" | nohup >/dev/null 2>&1 xclip if [[ $1 =~ http://(www.)?youtube.com/* ]]; then chromium "$1" else firefox "$1" fi