I have a zip archive and I want to extract only files that start with 'word' and put them into a directory 'dest_dir' under the same file name (wordxxxx.csv) I have tried the following command:
unzip -p archive.zip dir1/dir2/word*.csv -d dest_dir
But I get this error even though I have full control permissions over dest_dir
Access denied
Should I create a loop or something?
The -p
option was the actual problem. I resolved it with:
unzip archive.zip dir1/dir2/word*.csv -d dest_dir
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.