regular expression

Panagiotis Malakoudis pmal at space.gr
Thu Jun 28 12:02:28 EEST 2001


Den jero an sou kanei alla ego paizo me tin awk kai to -F flag (field
seperator)

root# cat lala |awk -F = '{print $1}'
one
two
three
w.a.s.p.
(big)

root# cat lala |awk -F = '{print $2}'
ενα
δυο
τρια
συγκροτημα.
(μεγαλο)


ASP wrote:
> 
> hello hello
> 
> loipon exw to parakatw arxeio dokimi.txt to opoio periexei :
> 
> one=ενα
> two=δυο
> three=τρια
> w.a.s.p.=συγκροτημα.
> (big)=(μεγαλο)
> 
> 8elo na emfaniso me xrisi regular expression
> 
> a)  tin prwti stili dil ta agglika  xwris to ison (=) alla me tis telies kai
> tis paren8eseis opos einai dil olokliri i leji
> b) tin deyteri stili dil ta ellinika  xwris to ison (=) alla me tis telies
> kai tis paren8eseis opos einai dil olokliri i leji
> 
> :)) filakia

-- 
Panagiotis Malakoudis - Systems Administrator
Technical Division
Space Hellas Group of Companies
Voice: +30 1 6504100



More information about the Linux-greek-users mailing list