# ~jhs/public_html/bin/.sh/index-sym # Creates lists of checksums & sizes for Symmetric by jhs@ # So that after frequent crashes, & a look in /lost+found & /*/lost+found, # by aid of ls -l & sum, the file can be restored whence it came. cd /usr/tmp ; pwd # find / -type f -print | sort \ # | grep -v "^/usr/backup" \ # | grep -v "^/site" \ # | grep -v "^/alt.root" \ # | grep -v "^/usr/home" > FILES sed -e 'sX^X./index-sym.sum.sub X' < FILES > index-sym.sum.sh cat > index-sym.sum.sub << EOF echo -n "\$1 " >> index-sym.sum sum \$1 >> index-sym.sum EOF chmod +x index-sym.sum.sub touch index-sym.sum echo now call sh ./index-sym.sum.sh sed -e 'sX^Xls -l X' < FILES > index-sym.ls.sh echo now call sh ./index-sym.ls.sh