ur5-robotic-grasping/network/cleanup.sh

4 lines
173 B
Bash
Raw Normal View History

2025-01-20 16:01:44 +08:00
#!/usr/bin/env bash
find logs/ -maxdepth 1 -type d | grep -v ^\\.$ | xargs -n 1 du -s | while read size name ; do if [ $size -le 10485 ] ; then echo rm -rf $name ; fi done