howtos:rm_many_files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
howtos:rm_many_files [07/08/2007 10:01] – domingo | howtos:rm_many_files [02/12/2018 21:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Goto to the directory: | ||
+ | < | ||
+ | cd ~/ | ||
+ | </ | ||
+ | |||
+ | And execute a find command with xargs: | ||
+ | |||
+ | < | ||
+ | find . -name ' | ||
+ | </ | ||
+ | |||
+ | Or you could: | ||
+ | |||
+ | < | ||
+ | echo * | xargs rm | ||
+ | </ | ||
+ | |||
+ | How to create a 1000 files: | ||
+ | |||
+ | < | ||
+ | for (( i=1 ; $i<=1000 ; i=$i+1 )) ; do echo ffffffffffffffffffffffffffffffff > ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff$i ; done | ||
+ | </ |
howtos/rm_many_files.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1