OLD_IFS="$IFS";
IFS=$'\n';
arr=($(ls | grep 7z));
for s in ${arr[@]} ;
do 7z x -o/path/of/the/output -pPassword $s;
done;
IFS="$OLD_IFS";
bash implements batch decompression of all 7z files in the current directory to another directory
Guess you like
Origin blog.csdn.net/u011570312/article/details/128436140
Recommended
Ranking