Last month, I wrote some blurb about the program speedcontrol.c. I won’t get in to what it does here, hopefully I can find that article.
It’s not obvious to me that Nautilus will let me do this. So I’m trying the command line.
mike@whitetower:~/Documents/lotd$ grep -r speedcontrol.c *
mike@whitetower:~/Documents/lotd$ grep -r -i vlc *
Binary file day 1/sound-daemon.odt matches
Binary file day 4/dmix.odt matches
Well, that’s wrong. I forgot, odt files are zipped XML.
mike@whitetower:~/Documents/lotd$ find ./ -name *.odt -exec zgrep -i vlc '{}' \;
Must not be searching all the contents
mike@whitetower:~/Documents/lotd$ zcat "./day 1/vlc.odt"
application/vnd.oasis.opendocument.textgzip: ./day 1/vlc.odt has more than one entry--rest ignored
Uh huh.
There must be an easier way.
mike@whitetower:~/Documents/lotd$ OFS=$IFS; IFS='
' ; for i in `find ./ -name *.odt `; do unzip -p "$i" content.xml | grep -i vlc > /tmp/$$.find ; if [ -s /tmp/$$.find ]; then echo "$i"; fi; done; IFS=$OFS; rm /tmp/$$.find
./day 3/flash.odt
./day 4/moresound.odt
./0208/today.odt
./day3/flash.odt
./day 1/vlc.odt
./day 1/morestuff.odt
./day 1/sound-daemon.odt
./published/day 0/linux-on-the-desktop2.odt
So a search on “vlc” works.
mike@whitetower:~/Documents/lotd$ OFS=$IFS; IFS='
' ; for i in `find ./ -name *.odt `; do unzip -p "$i" content.xml | grep -i speedcontrol > /tmp/$$.find ; if [ -s /tmp/$$.find ]; then echo "$i"; fi; done; IFS=$OFS; rm /tmp/$$.find
mike@whitetower:~/Documents/lotd$
ok. No reference to it. Meh. I should be able to recall most of it and re-write.