I have a conv.sh
script that loops over MP3 files in the current directory and converts them into OGG. I have also several directories {F1, F2,..., F20} at /path/to/Files/
. How should I execute conv.sh
on all of these directories?
|
||||
|
Try this
Or assuming you are at
You could use |
|||||||||||||||||
|
Try doing this :
This command treat only mp3 in dirs beginning with |
|||
|
You can use xargs or GNU parallel:
or:
Edit - handle space sensiblyAs noted by Ole, none of the above methods handle space properly, i.e. The best way to handle these issues is to use null as delimiter, e.g. with GNU find:
|
|||||
|