#!/usr/bin/env bash # Description: download all videos from a playlist in a separate directory. set -euf -o pipefail youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' "$@"