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

Next revision
Previous revision
howtos:rm_many_files [d/m/Y H:i]
domingo created
howtos:rm_many_files [d/m/Y H:i] (current)
Line 9: Line 9:
 <​code>​ <​code>​
 find . -name '​*.png'​ | xargs rm 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>​ </​code>​
howtos/rm_many_files.txt · Last modified: d/m/Y H:i (external edit)