BashSnippets
•
Nov 18
•
in Articles
• 1 min read
A four-line cleanup script, cd /srv/drop, rm .log, echo "cleanup done", run on a scratch tmpfs. At 80,290 files it emptied the directory. At 80,291:
$ /srv/cleanup.sh
/srv/cleanup.sh: line 4: /usr/bin/rm: Argument list too long
cleanup done
exit=0
$...