Files
usaco/lib/cmd/clean.sh
T

7 lines
245 B
Bash

# usaco clean
for s in solving solved skipped; do
[[ -d "$ROOT/$s" ]] || continue
find "$ROOT/$s" -mindepth 2 -maxdepth 2 -type f \
\( -name main -o -name a.out -o -name '*.bak' \) -print -delete | sed "s|^$ROOT/|removed |"
done