我现在想实现的是批量解压目录下的所有rar文件到与其文件名相同的目录下,请问怎么做呢?
rar -x *.rar 只能解压到当前目录
求解,谢谢
认证0级讲师
According to your needs, I wrote a script, the address is: https://segmentfault.com/a/11..., you can refer to it for suggestions
Brother, please write a script
I specially wrote a script to handle this kind of decompression: x.hs.
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
According to your needs, I wrote a script, the address is: https://segmentfault.com/a/11..., you can refer to it for suggestions
Brother, please write a script
I specially wrote a script to handle this kind of decompression: x.hs.
I wrote this out of thin air and have not tested it.
Not responsible for the consequences.