VoDaSuRe / extract_files.sh
AugustHoeg's picture
Upload extract_files.sh with huggingface_hub
a975114 verified
raw
history blame contribute delete
380 Bytes
#!/bin/bash
ROOT="ome"
echo "Extracting all .zarr.tar.gz files in $ROOT ..."
find "$ROOT" -name "*.zarr.tar.gz" -print0 | while IFS= read -r -d '' file; do
echo "Extracting $file ..."
# Extract
if tar -xzf "$file"; then
echo "Extraction successful: $file"
rm "$file"
else
echo "ERROR: Failed to extract $file"
fi
done
echo "Done."