我现在想实现的是批量解压目录下的所有rar文件到与其文件名相同的目录下,请问怎么做呢?
rar -x *.rar 只能解压到当前目录
求解,谢谢
伊谢尔伦2017-04-17 16:23:06
According to your needs, I wrote a script, the address is: https://segmentfault.com/a/11..., you can refer to it for suggestions
阿神2017-04-17 16:23:06
I wrote this out of thin air and have not tested it.
Not responsible for the consequences.
for f in *.rar;do mkdir ./$f && unrar $f ./$f;done