Quantcast
Channel: Linux find: How to exclude the ".snapshot" directory from find's results? - Server Fault
Viewing all articles
Browse latest Browse all 3

Answer by ShadSterling for Linux find: How to exclude the ".snapshot" directory from find's results?

$
0
0

Pruning the name .snapshot works, but I prefer to prune the path /.snapshot:

find $filedir -path "/.snapshots" -prune -o -name \*.gz -mmin +10 -print >> $varfile

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>