kano ta prota mou bimata....boithiste me parakalo
Vasilis Vasaitis
vvas at hal.csd.auth.gr
Mon Mar 31 03:37:01 EEST 2003
On Sun, Mar 30, 2003 at 11:26:14PM +0300, Yannis Kotsinos wrote:
> On Sunday 30 March 2003 15:15, Aleksandros Paleos wrote:
>
> > Exo faei olo to proi prospathontas na grapso ena script file to opoio na
> > antistrefei ta periexomena enos arxeiou kai na ta apothikeyei se ena allo
> > Kateliksa se ayto to script file
> >
> >
> > i=100 #tha prepei to arxeio dystyxos me mikrotero megethos apo 100 grammes
> > while (test $i -gt 1)
> > do
> > #echo $i
> > i=` expr $i - 1`
> > tail +$i $1|head -1 >>$2 #epilegete kathe fora mono mia grammi
> > done
..[snip]..
> Sto 8ema mas twra, ayto poy 8es ginetai poly eykola an antilhf8eis oti mporei
> na apodw8ei me ena stack data type (sthn glwssa ths epiloghs soy). Attached
> 8a breis ena biastiko programma poy egrapsa se C poy kanei ayto poy 8eleis.
> Apla kane redirect to stdin kai to stdout giati bariemai. :) An tyxon den soy
> kanei to line width (defined 1024) megalwse to.
>
> compile me: gcc -o revlines r.c
> run me: ./revlines < input.txt > output.txt
Παρακάτω ένα βιαστικό πρόγραμμα που έγραψα κι εγώ και κάνει αυτή τη
δουλειά:
perl -e 'print reverse <>'
:-P
..[snip]..
--
Vasilis Vasaitis
vvas at hal.csd.auth.gr
+306976604701
More information about the Linux-greek-users
mailing list