# sh search.shell word for f in ??_*.odt;do echo $f unzip -p $f content.xml | sed 's/>/>\r\n/g' | grep $@ | sed 's@<.*>@@g;s@[^0-9a-zA-Z.]*@@g' done