regular expression
George Daflidis-Kotsis
gdk at demon.net
Thu Jun 28 12:36:31 EEST 2001
On Thu, Jun 28, 2001 at 11:48:07AM +0300, ASP wrote:
> 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
cat > dokimi.pl
#!/usr/bin/perl -w
while (<>) {
s/\=//g;
print;
}
^D
chmod 755 dokimi.pl
./dokimi.pl dokimi.txt
--
[george daflidis-kotsis - systems admin,web/e-commerce - gdk at demon.net]
["I grow old always learning" - "I know one thing that I know nothing"]
More information about the Linux-greek-users
mailing list