Mipos xerei kaneis?

m65 at vivodinet.gr m65 at vivodinet.gr
Fri Mar 31 20:26:06 EEST 2006


Giorgos Keramidas wrote:
> On 2006-03-31 20:05, "m65 at vivodinet.gr" <m65 at vivodinet.gr> wrote:
> 
>>>H awk(1) sou kanei th douleia sou? :P
>>
>>Ok, kapoio tutorial?
> 
Egrapsa afto : awk "BEGIN { print \"Don't Panic!\" }"
gia na dokimaso tin awk genika apto exis site: 
http://www.loria.fr/~filbois/gawk.html
Oxi mono den etrexe, kai evgale minima lathous, alla oute kai sto 
history den apothikeftike! ;-) Opote to google kalo einai alla 
ligo...xaos... :-))

> Osa theleis.  To Google einai mia xara kai mporei na sou brei xiliades.
> Pros to paron, to parakatw mporei na se sprwksei sth swsth katey8ynsh:
> 
>     $ echo 03-19-2005 | awk -F- '{print $3"-"$1"-"$2}'
>     2005-03-19
>     $ echo 03-19-2005 | awk -F- '{printf "%s-%s-%s\n",$3,$1,$2}'
>     2005-03-19
>     $ echo 03-19-2005 | awk -F- '{printf "%04d-%02d-%02d\n",$3,$1,$2}'
>     2005-03-19
>     $
> 

Ok,to testara, kai einai kalo.
Opos to katalaveno tha xriasti enas tropos
1)na isago to csv
2)na vrisko tin stili
3)na epexergazomai kathe grammi me afto pou protines
4)OX! :-)

Se efharisto



More information about the Linux-greek-users mailing list