diff --git a/bash_tools/clean.sh b/bash_tools/clean.sh new file mode 100644 index 0000000..4bb9576 --- /dev/null +++ b/bash_tools/clean.sh @@ -0,0 +1,10 @@ +read -p "Are you sure? " -n 1 -r +echo # (optional) move to a new line +if [[ ! $REPLY =~ ^[Yy]$ ]] +then + exit 1 +fi + +rm -rf Log +rm -rf Parameters +rm *.txt diff --git a/bash_tools/make_new_previous.sh b/bash_tools/make_new_previous.sh new file mode 100644 index 0000000..b80763d --- /dev/null +++ b/bash_tools/make_new_previous.sh @@ -0,0 +1,5 @@ +MAX_NUMBER=199 + +MyPATH="Previous++" +mkdir $MyPATH +cp Parameters/*_S$MAX_NUMBER.npy $MyPATH