[Linux] Extract 7z files recursively

I have a bunch of .7z compressed files in random depth folders.

With this console command, we extract all those files in their respective folder.
*Note that i use the command “7zr x” to extract, you can use your own.

while [ -n "$(find . -type f -name '.7z' -print -quit)" ] do find . -type f -name ".7z" -execdir 7zr x {} \; -exec rm -- {} \; done

And that’s it.

Source http://askubuntu.com