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 [2020/02/14 17:12] – [Copyright] officefuss:sh [2020/11/16 01:12] – [Generate Random Numbers in Range using awk] office
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>
  
Line 799: Line 807:
   * ''X'' is the low number,   * ''X'' is the low number,
   * ''Y'' is the high number   * ''Y'' is the high number
 +
 +====== Find Plaintext Files ======
 +
 +<code bash>
 +find . -type f -exec grep -Iq . {} \; -print
 +</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.