XuvTools is developed in a cooperative effort from:
  • Chair of Pattern Recognition and Image Processing [www]
  • Friedrich Miescher Institute for Biomedical Research [www]
  • Center for Biological Systems Analysis [www]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
server_datasets [2010/09/19 12:28]
mario improved several syncing/packing/checking scripts
server_datasets [2010/09/19 13:40] (current)
mario added another compression/uncompression example
Line 44: Line 44:
 find "​${PWD}"​ -type f|grep -v "​.rar\$\|.md5\$"​|while read FILE ; do find "​${PWD}"​ -type f|grep -v "​.rar\$\|.md5\$"​|while read FILE ; do
     J=$(dirname "​$FILE"​) ; K=$(basename "​$FILE"​) ; cd "​$J"​ && if ! test -f "​$K.rar"​ ; then rar a -m5 -rr1 "​$K.rar"​ "​$K"​ || break ; fi     J=$(dirname "​$FILE"​) ; K=$(basename "​$FILE"​) ; cd "​$J"​ && if ! test -f "​$K.rar"​ ; then rar a -m5 -rr1 "​$K.rar"​ "​$K"​ || break ; fi
 +done
 +</​code>​
 +
 +If you need to uncompress the full repository of files, you can use a loop like the following:
 +
 +<​code>​
 +for DIR in BugListData FileFormats ReferenceData OriginalData ; do
 +    find "/​data/​xuvtools_img/​$DIR"​ -type f -name \*\.rar|while read FILE ; do
 +        J=$(dirname "​$FILE"​) ; K=$(basename "​$FILE"​ "​.rar"​) ; if ! test -f "​$J/​$K"​ ; then cd "​$J"​ && unrar x -o- "​$K.rar"​ ; fi
 +    done
 done done
 </​code>​ </​code>​
server_datasets.txt ยท Last modified: 2010/09/19 13:40 by mario
Contact: admin(a)xuvtools.org