Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # 5 19 27
- # 4 9 13
- N=9
- M=13
- for name in $(echo "background grid enzymes substrates coenzymes unicellularOrganisms higherPlants regulatoryEffects")
- #for name in $(echo "background")
- do
- echo $name
- for j in $(seq 0 $N)
- do
- echo $j line
- seq 0 $M | xargs -n 1 -P 8 -I TILE wget http://mapserver1.biochemical-pathways.com/map1/$name/4/TILE/$j.png?v=4 -O TILE.png -nv
- for file in $(ls ?.png)
- do
- mv $file 0$file
- done
- montage ??.png -geometry +0+0 -tile $(($M+1))x1 -background none line$(printf "%02d\n" $j).png
- rm ??.png
- done
- montage line*.png -geometry +0+0 -tile 1x$((N+1)) -background none $name.png
- rm line*.png
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement