I would like to know if it is possible to extract a specific file inside tar
file using find command.
Example:
Normal situation: find filaname called "file1" and extract
tar xvf tarfilename file1
My Situation:
find . -iname "*tar*" -exec tar -xvf *file1* {} \;
I don't know if possible to do.
Reason:
My internal prod system is not allowed to run tar
command.
I know that the best practice is running tar directly, but the hope dies last
Thanks in advance.
star
has a builtinfind
. Or do you rather likefind
to be used to locate tar archives that later are going to be extracted viatar
? – schily Nov 5 '20 at 16:32