#!/bin/sh # Download a Youtube song. # Flag: q - Do not print (as first param only) [ "$1" = "q" ] && flag="1>/dev/null" || flag="" [ "$1" = "q" ] && param="$2" || param="$1" yt-dlp -x "$param" -o "$HOME/songs/%(title)s.%(ext)s" $flag