Summary: Grep question

From: John Entwistle (jentwistle@twcny.rr.com)
Date: Thu Dec 16 2004 - 11:23:30 EST


Hi all,

First off let me say that I'm impressed at the number of responses I've
received and how quickly I received them. By far the most helpful forum
I've been involved with. Kudos to all of you!!...... Anyway, the
syntax that worked for me was:

grep 'hostname ' /etc/hosts (notice the space after hostname)

I'm running Solaris 8 and /usr/bin/grep. Nothing else worked, including
the egreps, /usr/xpg4/bin/grep, cat, etc... recommendations. I'd assume
this means that there must be a space at the end of each line. ???
Otherwise, I'm sure all the suggestions would have worked.

Again, thanks to everyone that replied!!! :-)
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:53 EDT