I have a bunch of 7z files, some of which contain files that have the same name. Therefore, I would like to do auto rename.
I can do something like
find ./all -exec 7z x -pabc123 -oall/xml {} \;
to extract all the files, but this asks me for each archive whether or not I want to auto rename them. Is there a way I can just have it ask me once? Or better yet, pass that in as a command line option?
(Note that I have to use seven zip because it has a password.)
Best Answer
From the p7zip manual:
Looks like either the
-aou
or the-aot
switch on the7z
command will do what you want, e. g.: