Tragic Solutions...
Kostas Lialiambis
root at edessa.topo.auth.gr
Mon Oct 27 23:54:02 EET 1997
Synh8ws ama 8elw na kanw kati biastika se shell kai de 3erw pws, 'h den to
kanw 'h grafw programmatakia se C poy kanoyn to tmhma ths diataghs poy den
3erw. H8ela na kanw to e3hs - na metatrepsw apo kefalaia se peza mia poly
megalh seira apo directories kai files poy htan ola se kefalaia (to html
manual toy MATHLAB, sygkekrimena, to opoio doyleye 8aymasia se DOS alla
ka8oloy se linux giati enw ta arxeia htan me kefalaia ta references mesa sta
documents htan se peza).
H lysh poy edwsa: Ekana ena mikro programma poy typwnei to prwto argument
poy dexetai me peza kai to onomasa "tolower":
#include <stdio.h>
#include <ctype.h>
main(int argc, char *argv[])
{
int i;
for (i=0; argv[1][i]!=0; i++)
printf("%c",tolower(argv[1][i]));
}
Katopin me tis 2 parakatw diatages dhmioyrgw directories me peza grammata
kai antigrafw mesa ta arxeia se ena allo directory (to /DOS/D):
for i in $(find -type d); do mkdir /DOS/D/$(tolower $i); done
for i in $(find -type f); do cp $i /DOS/D/$(tolower $i); done
H erwthsh moy einai: Pws mporoysa na kanw th doyleia moy xwris na
kataskeyasw diko moy programma (yparxei diatagh poy me kapoio tropo
meatrepei kefalaia se peza ?).
Stp.
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list