Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
find [2013/03/11 13:37]
127.0.0.1 external edit
find [2016/02/19 13:10]
steve
Line 1: Line 1:
 ====== find ====== ====== find ======
 +
 +  * [[findutils]]
  
 == Find only files == == Find only files ==
Line 40: Line 42:
  
 <​code>​ <​code>​
-find /var/cloudy/clients ​-type d -maxdepth 1 -print0 | sort -z | xargs -0 -I {} echo {}+find /var/nas/sites -type d -maxdepth 1 -print0 | sort -z | xargs -0 -I {} echo {}
 </​code>​ </​code>​
  
Line 46: Line 48:
  
 <​code>​ <​code>​
-find /var/cloudy/clients ​-mindepth 1 -maxdepth 1 -! -name '​.*'​ -print+find /var/nas/sites -mindepth 1 -maxdepth 1 -! -name '​.*'​ -print
 </​code>​ </​code>​
  
Line 53: Line 55:
 <​code>​ <​code>​
 find . -type f -ls find . -type f -ls
 +</​code>​
 +
 +== find empty files ==
 +
 +<​code>​
 +find . -type f -empty
 </​code>​ </​code>​