From df71b244157dd0d40f066254d9f5d1c4a392bfd4 Mon Sep 17 00:00:00 2001 From: meandmytram Date: Tue, 13 Aug 2024 21:22:08 -0400 Subject: [PATCH] add cleanup --- examples/decoding/cleanup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/decoding/cleanup.sh diff --git a/examples/decoding/cleanup.sh b/examples/decoding/cleanup.sh new file mode 100644 index 00000000..b45d700a --- /dev/null +++ b/examples/decoding/cleanup.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Delete all files ending with .out +find . -type f -name "*.out" -exec rm -f {} \; + +# Move all files ending with .npy to the "data" folder +mkdir -p data +find . -type f -name "*.npy" -exec mv {} data/ \; + +echo "All .out files deleted and .npy files moved to the 'data' folder."