[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Which tool, and how, to get partial string from file?



On Fri, Aug 20, 2004 at 03:59:20PM -0500, Kent West wrote:
> >snert[@macs51]:/home.local/snert> grep -o alias .bashrc
> >grep: invalid option -- o
> >Usage: grep [OPTION]... PATTERN [FILE]...
> >Try `grep --help' for more information.
> 
> and "man grep" doesn't seem to have an "-o" option.

What version of grep have you got, and which version of Debian are
you using?

ii  grep           2.5.1.ds1-3    GNU grep, egrep and fgrep

If you're using woody's version, then it won't have it, it seems.
There's plenty of other ways of doing it, mind.

-- Thomas Adam
--
"Frankly, Mr. Shankly, since you ask. You are a flatulent pain in 
the arse." -- Morrissey.



Reply to: