1
0

Add test.sh script

This commit is contained in:
Aaron Lindsay 2014-02-07 07:37:08 -05:00
parent b4bb87fe9b
commit 9a3f4a38aa

12
test.sh Executable file
View File

@ -0,0 +1,12 @@
rm -f test_latest test_results
touch test_results
for (( ago=100; ago>=0; ago-- )); do
backup_date=$( date -I -d "$ago days ago")
echo $backup_date >> test_latest
grep -v "_" test_latest | ./binary_backups.sh -r -d "$backup_date" | xargs -I "{}" sed -ri "s/{}/__________/g" test_latest
mv test_results test_results_old
paste -d " " test_latest test_results_old > test_results
done
rm test_results_old