cum grepuiesc si eu ceva dintr-un file binar ? man grep nu ajuta ca indica la grep -I care nu mere ...
adica [root:pts/17][~]# grep ark coolfile.xml [root:pts/17][~]# grep a coolfile.xml Binary file coolfile.xml matches [root:pts/17][~]# grep -I ark coolfile.xml la grep -I a coolfile.xml imi da output la tot (sau ma rog, la ce contine "a", insa mai mult de un caracter nu grepuieste) [root:pts/17][~]# echo cacat >> coolfile.xml [root:pts/17][~]# grep cacat coolfile.xml Binary file coolfile.xml matches [root:pts/17][~]# grep -a cacat coolfile.xml </Benchmark>cacat [root:pts/17][~]# grep -a ark coolfile.xml [root:pts/17][~]# grep --text cacat coolfile.xml </Benchmark>cacat [root:pts/17][~]# grep --text ark coolfile.xml [root:pts/17][~]# da, contine ark , mai precis Mark si nu numai :( so, idei ? :) merci --- Detalii despre listele noastre de mail: http://www.lug.ro/
