Find directories that have files that match a pattern

Replace *.mp3 with a string that will be used to match file below where you're at.

$ find . -name '*.mp3' | sed 's/^\.\/\([^/]*\)\/.*$/\1/g' | uniq

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.