mkdir ~/.tmp cd ~/.tmp clipboard=$(xclip -o) output=$(yt-dlp --extract-audio --audio-format mp3 "$clipboard") filename=$(echo "$output" | grep -oP '(?<=Destination: ).+\.mp3') catboxupload "$filename" rm "$filename"