以下命令工作正常:
find . -iname \*.7z -exec ls {} -al \;
但是当我更改\;
为 时\+
,即:
find . -iname \*.7z -exec ls {} -al \+
我收到错误报告:
missing argument to `-exec'
我发现当我改变{}
位置时:
find . -iname \*.7z -exec ls -al {} \+
上面的命令可以正常工作。
我对此感到困惑。
以下命令工作正常:
find . -iname \*.7z -exec ls {} -al \;
但是当我更改\;
为 时\+
,即:
find . -iname \*.7z -exec ls {} -al \+
我收到错误报告:
missing argument to `-exec'
我发现当我改变{}
位置时:
find . -iname \*.7z -exec ls -al {} \+
上面的命令可以正常工作。
我对此感到困惑。
我在工作目录中的文件列表:
'[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
我尝试在 *.rar 文件上方使用 7z 提取:
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
这似乎行不通。我感到困惑。