I have a compressed file containing 10,000 compressed files. Is there a linux / bash script command to unzip only 1000 files? Please note that all compressed files have the same extension.
You can use wildcards to select a subset of files. For instance.
Extract all contained files starting with b:
unzip some.zip b *
Extract all contained files whose name ends in y:
unzip some.zip * y.extension
, , unzip -l some.zip, , .
unzip -l some.zip
:
unzip -l zipped_files.zip |head -1000 |cut -b 29-100 >list_of_1000_files_to_unzip.txt
for files in `cat list_of_1000_files_to_unzip.txt `; do unzip zipped_files.zip $files;done
unzip -Z1 test.zip | head -1000 | sed 's| |\\ |g' | xargs unzip test.zip
Some tips:
Source: https://habr.com/ru/post/1530543/More articles:DataDriven Unit Test с использованием Excel в VS2013 - 64bitpublish android gradle project for local maven repository - androidCassandra 2.0.3 client-server error [TSocket reads 0 bytes] - cassandraAndroid: only Google accounts are available for a limited profile - androidangle diagram, input value changed by software (by code), not passed to the controller - angularjsпеременная определяет, но не работает в javascript, пока это представляет окно - javascriptCan ostringstream rdbuf be changed? - c ++Segmentation error while creating Qt QApplication - new-operatorIs it possible to trigger the middle mouse click using Javascript? - javascriptЗапустить собственное поведение браузера для (среднего) щелчка по ссылке - javascriptAll Articles