Linux: Find and Delete files

Find the files you want to delete:

find . -type f
find . -not -type d
find . ! -type d
  • f: a regular file
  • d: directory
  • l: symbolic link
  • c: character devices
  • b: block devices
  • p: named pipe (FIFO)
  • s: socket
find . -type f | xargs cat
for f in `find . -type f`;
do cat $f;
done

References:


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *