Delete all empty directories found with find
bash |copy code |?
1 find -depth -type d -empty -exec rmdir {} \;
Delete all empty directories found with find
bash |copy code |?
1 find -depth -type d -empty -exec rmdir {} \;
How to empty a mysql database. Forget about delete * command
bash |copy code |?
1 #!/bin/bash mysql -D $DATABASE -e 'TRUNCATE TABLENAME;'