Skip to content

Instantly share code, notes, and snippets.

@constvoidblog
constvoidblog / ls_nas.sh
Last active June 29, 2018 18:37
lftp bookmark wrapper for listing files on a nas
#!/bin/bash
#suppose we have a NAS bookmarked as music w/audio stored in "artist/album" format:
# ls_nas.sh music #list all artists
# ls_nas.sh music L #list all arists starting w/L
# ls_nas.sh music L*/ #list all albums of artists starting w/L
if [[ "$#" < 1 ]]; then
echo "ls_nas.sh <bookmark> [glob]"
echo " "