[PlanetCCRMA] grep having problems

Mark Knecht Mark Knecht <markknecht@gmail.com>
Fri Mar 11 05:28:01 2005


On Fri, 11 Mar 2005 07:54:13 +0100, Louis van Dompselaar
<louis@dompselaar.org> wrote:
> 
> 
> Fernando Lopez-Lezcano wrote:
> > On Thu, 2005-03-10 at 17:04, Mark Knecht wrote:
> >>[mark@Godzilla mark]$ cat .bash_history | grep ssh
> >>Binary file (standard input) matches
> >>[mark@Godzilla mark]$
> >
> > Strange, I tried the same thing (in fc3) and for some reason
> > .bash_history is being recognized as a binary file (instead of text).
> 
> On my fully up to date Planet FC3:
> 
> [louis@babylero ~]$ file .bash_history
> .bash_history: ASCII text
> [louis@babylero ~]$ grep ssh .bash_history |head -2
> ssh fs
> ssh ws
> 
> Just to let you know that not all FC3s are affected...
> It might just be something in your history that make it assume it
> is a binary file, like accented letters.
> 
> Louis

I have 3 FC2/Planet machines here. Only one exhibits this strangeness.
The other two work fine:

[mark@dragonfly mark]$ cat .bash_history | grep cat
cat /proc/interrupts
cat /boot/grub/grub.conf
cat Setup-script | nc localhost 8888
cat Setup-script | nc localhost 8888
cat Setup-script | nc localhost 8888
cat /etc/resolv.conf
slocate mozpluggerrc
cat /etc/resolv.conf
cat /proc/asound/cards
cat /proc/asound/cards
cat /proc/asound/cards
cat .bash_history | grep ssh
[mark@dragonfly mark]$

I'll look at the contents of .bash_history or jsut blow it away and
see if that fixes the problem.

thanks!

- Mark