User Tools

Site Tools


howtos:rm_many_files

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
howtos:rm_many_files [07/08/2007 10:01] domingohowtos:rm_many_files [02/12/2018 21:34] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +Goto to the directory:
  
 +<code>
 +cd ~/.thumbnails
 +</code>
 +
 +And execute a find command with xargs:
 +
 +<code>
 +find . -name '*.png' | xargs rm
 +</code>
 +
 +Or you could:
 +
 +<code>
 +echo * | xargs rm
 +</code>
 +
 +How to create a 1000 files:
 +
 +<code>
 +for (( i=1 ; $i<=1000 ; i=$i+1 )) ; do echo ffffffffffffffffffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff$i ; done
 +</code>