Solved

Binary file (standard input) matches

Posted on 2011-02-15
2
2,485 Views
Last Modified: 2012-05-11
Hi,

I currently run ubuntu through VB and after mounting windows drive/accessing files through gnome, I keep getting this message "Binary file (standard input) matches" when I try to run "grep -0 name"

Any idea what could be causing this?

Thank you!
0
Comment
Question by:faithless1
2 Comments
 
LVL 13

Accepted Solution

by:
Superdave earned 500 total points
ID: 34903451
There must be some non-text characters that make grep think it's not a text file.
You can use "grep -a" to insist that it is a text file.
Possibly it's Windows/MSDOS's carriage returns of end-of-file character that confuses it (although I don't that I've ever run into that myself).
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 34904466
Hi,

what is "grep -0" supposed to do?

I'm aware of "grep --null" or "grep -Z" but never came across "-0"!

wmp
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now