auto_unrar
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
auto_unrar [2009/08/01 18:07] – jt | auto_unrar [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <code bash> | ||
- | #!/bin/bash | ||
- | IMAGES=$(/ | ||
- | |||
- | for i in $(find . -maxdepth 1 -type d -mtime -1); do | ||
- | |||
- | if [ ! -e $i/.rarlock ] || [ ! -e $/.rarcc ]; then | ||
- | |||
- | cd $IMAGES/$i; | ||
- | touch .rarlock; | ||
- | rar e *.rar; | ||
- | |||
- | fi | ||
- | if [ $? == " | ||
- | rm .rarlock && touch .rarnc; | ||
- | echo `date` "$i failed extraction" | ||
- | else | ||
- | rm .rarlock && touch .rarcc; | ||
- | fi | ||
- | |||
- | |||
- | done | ||
- | |||
- | </ |
auto_unrar.1249150058.txt.gz · Last modified: 2020/08/10 02:28 (external edit)