Afficher un message
Vieux 04/01/2008, 22h48   #2
Ed Morton
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

  Réponse avec citation
 
Page generated in 0,05561 seconds with 9 queries