-
Notifications
You must be signed in to change notification settings - Fork 5
/
clean.sh
executable file
·22 lines (15 loc) · 747 Bytes
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
find . -name "*.out*" -print -exec rm {} \;
find . -name "plot.gnu" -print -exec rm {} \;
find . -name "*_script*" -print -exec rm {} \;
find . -name "*.ps*" -print -exec rm {} \;
find . -name "*.xmgr*" -print -exec rm {} \;
find . -name "*.rap*" -print -exec rm {} \;
find . -name "*.plot*" -print -exec rm {} \;
find . -name "tmp" -print -exec rm -r {} \;
find . -name "*~" -print -exec rm {} \;
find . -name "*.log" -print -exec rm {} \;
find . \( -name "*Ref*" -o -name "*Docs*" \) -prune -o -name "*.pdf" -print -exec rm {} \;
find . \( -name "*Ref*" -o -name "*Docs*" \) -prune -o -name "*.dat" -print -exec rm {} \;
find . \( -name "*Ref*" -o -name "*Docs*" \) -prune -o -name "*.xsf" -print -exec rm {} \;
exit