grep

Stelios Bounanos sb at dial.pipex.com
Fri Jun 25 08:37:30 EEST 1999


On Fri, 25 Jun 1999 04:19:17 +0300, "George A. Michalopoulos" <gmich at sae.gr> 
was rumoured to have said about `` grep '': 

> exw mia lista san thn parakatw, kai 8elw na bgalw monon ta hosts apo thn
> Ellada.
> dokimasa to cat koko.txt | grep ".gr" > koko2.txt
> alla agnoei thn teleia, kai mou bazei mesa kai to:
>   26879   0.00   granpa
> 
> ;)))
> kammia protash ?
> 
[snip]

Auto symbainei giati h teleia se ena regular expression einai wildcard
gia ena xarakthra. Opote sthn prokeimenh periptwsh kanei match 
to keno prin to `granpa'.
Opote kane escape thn teleia kai pes sto grep oti to `gr' 
einai sto telos ths grammhs, kalou-kakou:

..... | grep '\.gr$'

man grep gia perissotera :)

HTH.


Regards,
sb.

-- 
Stelios Bounanos <sb at dial.pipex.com>
  .............10000000 years later:
  The Ultimate Answer is 42.
  (next mail will give the Question)


--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list