DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash remove random files from directory
find /path/to/dir -type f -print0 | sort -zR | tail -zn +1001 | xargs -0 rm
Source by superuser.com #
PREVIOUS
NEXT
Tagged:
#bash
#remove
#random
#files
#directory
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit