Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
fuss:sh [2019/11/08 16:40] – [Scramble a String] officefuss:sh [2020/03/30 05:18] – [For ZIP] office
Line 14: Line 14:
 <code bash> <code bash>
 ########################################################################### ###########################################################################
-##  Copyright (C) Wizardry and Steamworks 2018 - License: GNU GPLv3      ##+##  Copyright (C) Wizardry and Steamworks 2019 - License: GNU GPLv3      ##
 ##  Please see: http://www.gnu.org/licenses/gpl.html for legal details,  ## ##  Please see: http://www.gnu.org/licenses/gpl.html for legal details,  ##
 ##  rights of fair usage, the disclaimer and warranty conditions.        ## ##  rights of fair usage, the disclaimer and warranty conditions.        ##
Line 495: Line 495:
  
 ===== For ZIP ==== ===== For ZIP ====
 +
 +Using parallel:
 +
 +<code bash>
 +find . -iname '*.zip' | parallel -j4 'cd {//}; mkdir -p "$(basename {/} .zip)"; unzip {/} -d "$(basename {/} .zip)"; rm {/}'
 +</code>
 +
 +and without parallel:
  
 <code bash> <code bash>
-find . -name '*.zip'parallel -j4 'cd {//}; mkdir -p "$(basename {/} .zip)"; unzip {/} -d "$(basename {/} .zip)"; rm {/}'+find . -iname '*.zip' -print0 xargs -0 -I{} sh -c 'd=$(basename "{}.zip); mkdir -p "$d"; unzip "{}-d "$d";'
 </code> </code>
  

fuss/sh.txt · Last modified: 2024/01/21 00:18 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.