Issue :

Files ending with the extension .mp3 need to be removed from the current directory and all sub-directories.

Solution :

You can use either of the following commands to achieve this :

find . -name ‘*.mp3’ -exec rm -v {} ;

OR

find . -name ‘*.mp3’ | xargs rm


Shares
Contact Us On WhatsApp