mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
add rm-targets script
This commit is contained in:
16
bin/rm-targets
Executable file
16
bin/rm-targets
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Script to remove all 'target' subdirectories. Used to get back disk space
|
||||
# from unused rust repos.
|
||||
|
||||
echo "current dir size:"
|
||||
du -hs
|
||||
echo ""
|
||||
|
||||
echo "removing subdirs:"
|
||||
find . -type d -name "target" # find & print
|
||||
find . -type d -name "target" -exec rm -rf {} + # find & rm
|
||||
|
||||
echo ""
|
||||
echo "dir size after removing all 'target' subdirs:"
|
||||
du -hs
|
||||
Reference in New Issue
Block a user