diff --git a/scripts/remove_dir_with_match.sh b/scripts/remove_dir_with_match.sh new file mode 100755 index 0000000..e6f29e1 --- /dev/null +++ b/scripts/remove_dir_with_match.sh @@ -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 \ No newline at end of file