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

[ale] grep



> > 
> > grep -n <expr> [<files...>] | find -d ':' -f 1
> > 
> > -d = delimiter
> > -f = field (seperated by delimiter)
> > 
> I tried that and I get:
> 
> find: invalid predicate `-d'
> 

Erk! My apologies. I have no clue what I was thinking at the time.
The command SHOULD be:

grep -n <expr> [<files...>] | cut -d ':' -f 1

Sorry again,

---
Christopher Hamilton    Internal System Administrator
chrish at ifsintl.com      IFS International, Inc.