Files
suitesparse-downloader/scripts/remove_dir_with_match.sh
Carl Pearson 82568c2166 script
2021-11-25 06:18:51 -08:00

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