Wednesday, June 21, 2017

arg list too long. come on.

 bash-3.00# rm -rf *  
 bash: /usr/bin/rm: Arg list too long  
   
 what? 1000 entries is too much?  
   
 bash-3.00# find . -name '*' | xargs rm  
   

zgrep them all

 grep recursively through a whole lot of gz'd files.  
   
 # find -name \*.gz -print0 | xargs -0 zgrep "\<6.1.1.15>\"