#!/bin/bash #firefox -new-tab "https://www.youtube.com/results?search_query="$1+$2+$3+$4+$5+$6+$7+$8+$9 search=$(curl "https://www.youtube.com/results?search_query="$1+$2+$3+$4+$5+$6+$7+$8+$9 | grep -o -P 'watch\?v=.{0,11}' | head -1) youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/$search & > /dev/null