Created
June 8, 2021 17:19
-
-
Save zaifastafa/2e9eacebd0b2b808510095b00ffa3675 to your computer and use it in GitHub Desktop.
undo unzip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unzip -l ENTER_FILENAME.zip | awk 'BEGIN { OFS="" ; ORS="" } ; { for ( i=4; i<NF; i++ ) print $i " "; print $NF "\n" }' | xargs -I{} rm -rfv {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment