This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File Edit Options Buffers Tools Sh-Script Help | |
#!/bin/bash | |
pushd data/sets/ > /dev/null | |
mkdir -p data/sets/ | |
mkdir -p archives | |
find . -maxdepth 1 -mindepth 1 -type d -not -name archives -not -name data | while read -r set | |
do | |
export set set=`basename $set` | |
touch -d "`find $set -exec stat \{} --printf="%y\n" \; | sort -n -r | head -1`" ${set}test | |
if [ ${set}test -nt archives/$set.tar.gz ] |
NewerOlder