I've 4 folder & inside each of them, there're a folder XML that contain zip files & some folders with zip files
All of the zip files contains files in XML format
/A/XML/: BDL_DCR_20170216.zip BDL_BPR_20170218.zip . . /A/XML/zipped: BDL_CPR_20170221.zip BDL_BPR_20170220.zip . . /B/XML/: BDL_DCR_20170216.zip BDL_BPR_20170218.zip . . /B/XML/20170221/: BDL_DCR_20170216.zip BDL_BPR_20170218.zip . . /B/XML/zipped/: BDL_DCR_20170216.zip BDL_BPR_20170218.zip . .
the rest with similar pattern
`/C/XML-20170221, *.zip` `/D/XML-20170221, 20170220, 20170219`
I wanted to unzip all of it & save it to some directory X
I tried to unzip one of it by:
find /home/A/XML -type f -name "*.zip" | unzip /home/A/XML/*
& got the following error:
Archive: /home/A/BDL_XM_20170221.zip caution: filename not matched: /home/A/XML/ZIPPED caution: filename not matched: /home/A/XML/20170221.zip
I'm thinking maybe there's something wrong with
unzip /home/A/XML/* cause in simple case is unzip
Can anyone suggest how can I unzip all of the folders one shot? How can I unzip all the zip files & the folders with zip files?
Thanks a lot, appreciate your help :)