[plug] dd speed estimates and /dev/hdx grepping
Bernard Blackham
bernard at blackham.com.au
Wed Oct 22 19:46:23 WST 2003
> Could you elaborate on 'not doable'?
>
> # grep -b blah /dev/hda
> Binary file /dev/hda matches
>
> Admittedly it isn't terribly /useful/ but fiddling with the grep options
> may get you somewhere...
I find it more useful to use strings first:
strings < /dev/hda |grep -10 "fubar" ...
Where the -10 is the number of lines of context before and after.
It's generally only the readable text you (or I) care about anyway :)
Bernard.
--
Bernard Blackham
bernard at blackham dot com dot au
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
More information about the plug
mailing list