8 lines
181 B
Bash
Executable File
8 lines
181 B
Bash
Executable File
# 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 |