erwtisi gia scripts
VassiLis
vfotop1 at physics.upatras.gr
Thu Dec 30 01:08:08 EET 1999
paides xairetw kai erxomai kateu8eian sto psito.
molis simera 3ekinisa na asxoloume me basika
pragmatakia gyrw apo shell programming.
afou katafera me to awk kai to /etc/passwd,na parw
mia lista twn xristwn pou me endiaferoun kai twn homepaths
tin eswsa se 3exwristo arxeio...as poume loipon oti exoume
to e3is arxeio me onoma usrs-pths....
user1 /home/user1
user2 /home/user2
gia logous parakolou8isis,8elw na ellegxw ti xwro katalambanei
o ka8enas tous,px me ti xrisi tis du -ks pernondas etsi ena neo
arxeio tou typou...
550 user1
430 user2
xm...8elw alla ela pou den mporw! exw diavasei se 2 diaforetika
vivlia ta adistoixa kefalaia tou awk alla akri de vriskw...dokimasa
kai to action system(cmd-line) ws e3is...
awk '{system("du -ks $2")}' usrs-pths
to opoio ekteleitai men 2 fores (oses kai oi grames tou usrs-pths)
alla vgazei to idio apotelesma...to du tou current directory.
mporei kaneis na me voi8isei i toulaxiston na proteinei mia alli lysi?
VassiLis
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/lgu.html
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list