rc-web@26: #!/bin/bash rc-web@26: rc-web@26: ## add reference to external stylesheet to each svg file rc-web@26: rc-web@63: path="www/8/svg" rc-web@25: header=' ' rc-web@25: rc-web@31: rc-web@31: rc-web@25: for i in `ls $path/*.svg`; rc-web@25: do rc-web@26: # change size - commented out - size can be defined in html rc-web@32: sed -i 's/ width="100.00mm" height="45.00mm" viewBox="0 0 63.2283 28.4528"/ width="1000px" height="450px" viewBox="0 0 1000 450"/'g $i rc-web@26: #sed -i 's/ width="105.00mm" height="60.00mm" / width="1280px" height="800px" /'g $i rc-web@25: echo $header > tmp.svg; rc-web@25: cat $i >> tmp.svg ; rc-web@25: mv tmp.svg $i; rc-web@26: done;