0

Want to use the find command on a three different directory trees.

I currently work on each parent directory with .

find . -type f -name "*.flac" -exec rename 's/--/-/g' {} \;

Want to apply the find to three directories /media/bard/repo01/, /media/bard/repo02/ and /media/bard/repo03/.

1
  • 1
    This should work: find /media/bard/repo01/ /media/bard/repo02/ /media/bard/repo03/ -type f ... Jan 11, 2023 at 0:05

1 Answer 1

0

Like this:

find /media/bard/repo0[1-3] -type f -name "*.flac" -exec rename 's/--/-/g' {} \;

Using a glob:

man bash | less +/'^ *Pattern Matching\s*$'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .