[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stupid grep




So, does anyone know why this is:

sauer@pyro:~ > grep mirrorstuff.sh /var/log/messages
Binary file /var/log/messages matches
sauer@pyro:~ > file /var/log/messages
/var/log/messages: ASCII text

Hmm, it doesn't APPEAR to be a binary file...  Let's see if root has any
better luck:

sauer@pyro:~ > su -c 'grep mirrorstuff.sh /var/log/messages'
Password: 
Binary file /var/log/messages matches

Nope.  Darn it.  So, anyone know what's causing that?  I know I can do stuff
like use '-a' or '--text' - but what in the heck would cause grep to
suddenly stop properly identifying text files?  Y2K.5?  Lunar misalignment?  
Crazy electroluminescent monkies?  Me?

Eh, someday I'll figure it out.
--Danny, having this problem on an SMP SuSE 6.4 box running 2.2.14


--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.