Thursday, September 16, 2010

Tree listing - bash scripts/commands for OS X

ok I was wanting to view my music directories and found this lovely command

find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' | grep -v DS_Store

at Murhpy's wonderful site.

piping it to the grep -v removes the .DS_Store files
grep --help for more info

.