Advertisement
Advertisement
| 07.09.2008 at 03:32PM PDT, ID: 23552135 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: |
#!/bin/sh
find . -name "*[0-9]" | while read name
do
arch=`echo $name | sed "s:.*/::"`
cd $arch
if [ -f /directory/path/$arch/* ] ; then
tar -czf $arch.tar.gz *
/bin/mv $arch.tar.gz ../out/$arch.tar.gz
/bin/rm -f *
fi
cd ..
done
|