Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how can I get color matching in grub in freebsd?

Posted on 2008-10-23
5
747 Views
Last Modified: 2013-12-06
In linux this seems to be working great..

GREP_OPTIONS='--color=auto' ; export GREP_OPTIONS

now sure how to achieve this in freebsd.. can someone help me to get 'color' matched pattern in freebsd

this is what I get in freebsd..

$grep --color=auto
grep: unrecognized option `--color=auto'
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
0
Comment
Question by:beer9
  • 3
  • 2
5 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 125 total points
ID: 22784270
instead of color use colour...

So,

$grep --colour=auto

should work :-)
0
 

Author Comment

by:beer9
ID: 22784299
Again same issue.. --colour is not recognized keyword in grep [freebsd,solaris]
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 22784350
This is my grep version:

grep --version
grep (GNU grep) 2.5.1-FreeBSD

This is the output when I use --colour:

grep --colour=auto file *
d:upload_max_filesize => 2M => 2M
d:Supported handlers => cdb cdb_make inifile flatfile
d:Supported filetypes => JPEG,TIFF
d:fileinfo
d:fileinfo support => enabled
etc...

And file is highlighted nicely.

What version do you use? Did you do a:
man grep

To check if your version does/ does not support the --colour option?

If not, maybe it's time to update your version...
0
 

Author Comment

by:beer9
ID: 22785355
I had a version 2.4, tested in grep version 2.5, working nice!
Thank you :)
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 22785400
You're welcome :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

838 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