5 for pic in `grep includegraphics $1/*.tex | sed 's/\(.*{\)\(.*\)}.*/\2/'`; do
9 echo "$pic" | sed 's/eps/fig/g' >> \
11 echo "$pic" | sed 's/eps/agr/g' >> \
13 echo "$pic" | sed 's/eps/xcf/g' >> \
15 echo "$pic" | sed 's/eps/plot/g' >> \
18 echo "syncing the following files:"
20 RSYNC="rsync -avz -e ssh --files-from=$FILE"
21 $RSYNC img/ frank-z@pc05ep4:~/work/lectures/latex/nlsop/img/ 2>/dev/null
22 $RSYNC frank-z@pc05ep4:~/work/lectures/latex/nlsop/img/ img/ 2>/dev/null