-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro_clean.sh
38 lines (32 loc) · 1.05 KB
/
astro_clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# DSS TOOLS
# The purpose of this script is to delete redundant or tempoary files
# created by DSS or the ASIAIR.
#
# Some of the files also relate to Nebulosity.
echo "DANGER!"
echo
echo "The purpose of this script is to remove any unwanted files in the current or sub-directories."
echo
echo
echo "Files which will be deleted are:"
echo
echo "ASIAIR thumbnails All files matching *.jpg"
echo "Nebulosity working files All files matching pproc_*.fit"
echo "Nebulosity working files All files matching Q*_Light*.fit"
echo "DSS working files All files named Autosave.tif"
echo "DSS working files All files named *.Info.txt"
echo
echo
echo "Press CTRL-C to abort..."
echo
read -p "Press ENTER to continue..."
read -p "Press ENTER again if you are sure you wish to continue..."
echo
find . -name '*.jpg' -delete
find . -name '*.Info.txt' -delete
find . -name 'Autosave.tif' -delete
find . -name 'Autosave.fit' -delete
find . -name 'Autosave.fit*txt' -delete
find . -name 'pproc_*.fit' -delete
find . -name 'Q*_Light*.fit' -delete