CHM formated files (parsing)
Iain Young
iain at g7iii.net
Sun Mar 4 16:14:25 UTC 2007
Hi Serb,
Don't know what a .chm file is, but you could try using strings(1)
Something like:
for i in `ls -1 *.chm` ; do
echo $i
strings $i | grep my_name
done
The echo will print the name of the file before any output, enabling
you to see which file matched.
Iain
Serg B. wrote:
> Hi All,
>
> I have a bunch of CHM formatted files that I need interrogate for
> certina info...
>
> E.g: for i in *.chm; do grep my_name $i; done
>
> The problem is that Linux (and undoubtedly Windows) sees the files as
> binary data making grep useless. Therefore is there a way to quickly
> (hopefully from command line since I need to script) parse a CHM
> files?
>
> Thank,
>
More information about the ubuntu-users
mailing list