Is it possible to use a zsh script to unrar all directories within another directory?
As follows:
dir |_dir1.rar |_dir2.rar |_dir3.rar
I would like the command not to include the cd. I will cd into the folder before executing the zsh script. The script should extract all .rar directories into the same folder with the same original directory name. For example dir1.rar should extract to dir1 and so on.
Hope this can be done.