#!/bin/bash
#cat graphs.tex | sed 's/\\includegraphics\[width=\\textwidth\]{\.\/google\/.*}/\L&/g' > graphs2.tex
#cat graphs.tex | sed 's/\(\\includegraphics\[width=\\textwidth\]{\.\/google\/\)\(.*\)\(-\)\(.*\)\(.jpg\}\)/\1\2x\4\5/g' | sed 's/\(\\includegraphics\[width=\\textwidth\]{\.\/google\/\)\(.*\)\(_\)\(.*\)\(.jpg\}\)/\1\2x\4\5/g' | sed 's/\(\\includegraphics\[width=\\textwidth\]{\.\/google\/\)\(.*\)\(_\)\(.*\)\(.jpg\}\)/\1\2x\4\5/g' | sed 's/\(\\includegraphics\[width=\\textwidth\]{\.\/google\/\)\(.*\)\(-\)\(.*\)\(.jpg\}\)/\1\2x\4\5/g' | sed 's/\(\\includegraphics\[width=\\textwidth\]{\.\/google\/\)\(.*\)\(_\)\(.*\)\(.jpg\}\)/\1\2x\4\5/g' | sed 's/\(\\includegraphics\[width=\\textwidth\]{\.\/google\/\)\(.*\)\(.jpg\}\)/\L&/g' > graphs3.tex
cat graphs.tex | sed 's/\(printf\)\(.*\)\(\\verb"\)\(.*\)\("\)\(.*\)/\printf BITTE IM PDF NACHGUCKEN/g' > graphs2.tex
cat graphs2.tex | sed 's/\(\\verb"\)\(.*\)\("\)/\\begin{verbatim}\2\\end{verbatim}/g' > graphs3.tex
#cd ./google
#l=$(ls)
#for s in $l
#do
# x=$s
# y=$(echo $x | sed 's/_//g')
# y=$(echo $y | sed 's/-//g')
# y=$(echo $y | sed 's/.*/\L&/g')
# if [ $x != $y ]
# then
# mv $x $y
# fi
#done
#cd ..