我的工作目录中的文件列表:
'[CASO] SHIROBAKO [01][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [02][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [03][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [04][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [06][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [07][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [08][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [09][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [10][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [11][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [12][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [13][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [14][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [15][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [16][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [17][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [18][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [19][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [20][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [21][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [22][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [23][Ma10p_1080p][x265_2flac].rar'
'[CASO] SHIROBAKO [24][Ma10p_1080p][x265_2flac].rar'
'Daisan Hikou Shoujotai.rar'
Exodus.rar
passwd.txt
Scans.rar
SPs.part1.rar
SPs.part2.rar
SPs.part4.rar
我尝试使用 7z 提取上述 *.rar 文件:
7z e *.rar -oOPT -p$(cat passwd.txt) -r
但结果:
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 864186364 bytes (825 MiB)
Extracting archive: [CASO] SHIROBAKO [01][Ma10p_1080p][x265_2flac].rar
--
Path = [CASO] SHIROBAKO [01][Ma10p_1080p][x265_2flac].rar
Type = Rar
Physical Size = 864186364
Solid = -
Blocks = 2
Multivolume = -
Volumes = 1
No files to process
Everything is Ok
Files: 0
Size: 0
Compressed: 864186364
这似乎不起作用。我感到很困惑。
答案1
您需要在*.rar
命令部分加上双引号:
7z e "*.rar" -oOPT -p$(cat passwd.txt)