DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th June 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default fstat | grep internet | grep -v -e '>' -e '<'

When I type this command
Code:
fstat | grep internet | grep -v -e '>' -e '<'
I see this error

Code:
grep: unknown option -- color
usage: grep [-abcEFGHhIiLlnoPqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--context[=num]]
        [--line-buffered] [pattern] [file ...]
grep: unknown option -- color
usage: grep [-abcEFGHhIiLlnoPqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--context[=num]]
        [--line-buffered] [pattern] [file ...]
Reply With Quote
  #2   (View Single Post)  
Old 10th June 2008
halber_mensch's Avatar
halber_mensch halber_mensch is offline
Real Name: halber mensch
Port Guard
 
Join Date: Jun 2008
Location: Sapulpa, OK
Posts: 14
Thanked 1 Time in 1 Post
Default

alias grep ?
my guess is you're using a .profile/.cshrc from a system that has an alias for grep (grep --color=auto)that expects gnu grep, but OpenBSD grep does not support the gnu --color argument.
__________________
perl -e "eval pack(q{H*}, join q{},qw{7072696e74207061636b28717b482a7d2c717b34393 23036333631366532303666366536633739323036313733373 33735366436353230373936663735323036353738373036353 63337343635363432303734363836393733323037343666323 03632363532303631323036633639373437343663363532303 66436663732363532303635366537343635373237343631363 93665363936653637326530617d293b})"
Reply With Quote
  #3   (View Single Post)  
Old 10th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

halber_mensch is correct, your environment seems to be appending a --color argument to grep.

BSD grep != GNU grep.
Reply With Quote
  #4   (View Single Post)  
Old 10th June 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Thanks Guys,
I check my .zshrc and I modify it and right now everything is ok
Reply With Quote
  #5   (View Single Post)  
Old 10th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

If you find yourself using different systems often, you might adjust your zshrc to change the aliases based on the OS.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
boot floppy - internet involved? Lazy FreeBSD Installation and Upgrading 15 26th June 2010 05:14 PM
could not look up internet address for .lan idefix FreeBSD General 2 31st January 2009 02:22 PM
Testing Internet Bandwidth JMJ_coder General software and network 8 21st July 2008 01:00 AM
Internet access within jail Weaseal FreeBSD General 5 26th June 2008 02:45 PM
The Internet is a dangerous place jggimi Off-Topic 20 22nd June 2008 04:42 AM


All times are GMT. The time now is 05:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick