Differences

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

Link to this comparison view

Both sides previous revision Previous revision
fuss:sh [2020/02/14 17:12]
office [Copyright]
fuss:sh [2020/03/30 06:18] (current)
office [For ZIP]
Line 495: Line 495:
  
 ===== For ZIP ==== ===== For ZIP ====
 +
 +Using parallel:
  
 <code bash> <code bash>
-find . -name '​*.zip'​ | parallel -j4 'cd {//}; mkdir -p "​$(basename {/} .zip)";​ unzip {/} -d "​$(basename {/} .zip)";​ rm {/}'+find . -iname '​*.zip'​ | parallel -j4 'cd {//}; mkdir -p "​$(basename {/} .zip)";​ unzip {/} -d "​$(basename {/} .zip)";​ rm {/}
 +</​code>​ 
 + 
 +and without parallel: 
 + 
 +<code bash> 
 +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: 2020/03/30 06:18 by office

Access website using Tor Access website using i2p


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