Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 119cb0d962
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (12 sloc) 0.358 kb
#!/bin/bash
WAFFLE_DIR="/mnt/Gluttony/waffles"
declare -a waffles
while read -d $'\0' waffle; do
waffles+=("$waffle")
done < <(find "$WAFFLE_DIR" -links 1 -iregex '.*\.\(flac\|mp3\)' -printf '%h\0' | uniq -z)
if [[ -n $1 ]]; then
items=("${waffles[@]:$1:${2:-1}}")
else
items=("${waffles[@]}")
fi
(( ${#items[@]} )) && printf "%q\n" "${items[@]}"
Jump to Line
Something went wrong with that request. Please try again.