script
This commit is contained in:
8
scripts/remove_dir_with_match.sh
Executable file
8
scripts/remove_dir_with_match.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
# remove a directory if it contains a file that matches grep
|
||||
|
||||
for d in *; do
|
||||
grep -R "coordinate integer" $d > /dev/null
|
||||
if [[ 0 = $? ]]; then
|
||||
rm -rfv $d
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user