erwtisi gia scripts

Michalis Kabrianis kabrianis at hellug.gr
Thu Dec 30 09:59:41 EET 1999


On 29-Dec-1999 VassiLis wrote:
<snip>
> 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
<snip> 
> VassiLis

Ypothetw oti exeis bash, ara :

for i in `cat usrs-pths | awk '{print $2}'`; do du -sk $i;  done

Gia (t)csh 

foreach i ( `cat users | awk '{print $2}'` ) 
> du -sk $i
> end

H, xwris loop (kai aneksartita shell):

cat usrs-pths | awk '{print $2}' | xargs du -sk

Xronia polla

Michalis Kabrianis
--
====================================================================
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