Re: listing all words starting with $
On 1/4/2008 3:36 PM, Brian Greaney wrote:
> Hi, a simple(?) newbie question..
>
> Is there a simple way of producing a list of all the words in a text file
> that start with a $. I tried cat file | grep '^\$' but that seems to
> just give me all the blank lines.
I every "word" on a line of it's own or could there be multiple words on a line?
How do you define a "word" - is there some specific set of characters (e.g.
white space, punctuation, digits, etc.) a "word" can/can't contain?
Ed.
|