From c9e40ab8ead3fab76a2fb4fb101384a8d9ce1e97 Mon Sep 17 00:00:00 2001 From: Mathias Quillot Date: Wed, 11 Sep 2019 22:20:26 +0200 Subject: [PATCH] Allow to rm unused files. Can help to build others script for similar task --- rm-unused-files.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 rm-unused-files.sh diff --git a/rm-unused-files.sh b/rm-unused-files.sh new file mode 100755 index 0000000..86fe846 --- /dev/null +++ b/rm-unused-files.sh @@ -0,0 +1,16 @@ + +if [ $# -eq 1 ] +then + EXP_DIR="$1" +else + echo "Need to have one and only one argument. This argument is the exp directory." + exit 1 +fi + +for kfold in {1..4} +do + for k in {1..100} + do + rm ${EXP_DIR}/$kfold/$k/clustered_$k.txt + done +done -- 1.8.2.3