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
Next revision
Previous revision
server_datasets [2010/05/05 21:32]
mario added other repositories links
server_datasets [2010/09/19 13:40]
mario added another compression/uncompression example
Line 42: Line 42:
  
 <​code>​ <​code>​
-find "​${PWD}"​ -type f|while read FILE ; do +find "​${PWD}"​ -type f|grep -v "​.rar\$\|.md5\$"​|while read FILE ; do 
-    J=$(dirname "​$FILE"​) ; K=$(basename "​$FILE"​) ; cd "​$J"​ && rar a -m5 -rr1 "​$K.rar"​ "​$K"​ || break+    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>​
Line 67: Line 77:
  
 <​code>​ <​code>​
-find "​${PWD}"​ -type f|while read FILE ; do +find "​${PWD}"​ -type f|grep -v "​.rar\$\|.md5\$"​|while read FILE ; do 
-    J=$(dirname "​$FILE"​) ; K=$(basename "​$FILE"​) ; cd "​$J"​ && md5sum --binary "​$K"​ > "​$K.md5"​ || break+    J=$(dirname "​$FILE"​) ; K=$(basename "​$FILE"​) ; cd "​$J" ​&& if ! test -f "​$K.md5"​ ; then && md5sum --binary "​$K"​ > "​$K.md5"​ || break ; fi
 done done
 </​code>​ </​code>​
server_datasets.txt · Last modified: 2010/09/19 13:40 by mario
Contact: admin(a)xuvtools.org