(Not) recursing in shell scripts [was: Re: Giati exo firewall energopoihmeno (was: Re: iptables script + δυνατότητες)]

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Oct 15 15:44:01 EEST 2002


On 2002-10-15 15:28, Yannis Kotsinos <zookie at med.auth.gr> wrote:
> Plug: Kati poy moy 8ymise ena egxeirhma poy eixa 3ekinhsei kai to
> stamathsa sth mesh. Eixa diabasei apo to policy toy hellug ena wraio
> util poy ekane md5sums se sygkekrimena dirs apo8hkeyontas ta
> apotelesmata se ena arxeio. Prospa8hsa na to kanw se shell script
> poy oysiastika 8a ekane wrap to md5sum, kai eftasa se ena shmeio poy
> katalaba oti 8a me boleye ena ypotypwdes recursion h/kai h
> yposthri3h procedures gia einai kati tetoio dynato. px, na dineis:
>
> md5dirsum.sh /usr > hash.out

Asxeto me to arxiko mail sto opoio apantas, alla telospantwn.
Paikse me thn find(1):

root at hades[15:42]/root# find /tmp -type d -or -type f | xargs md5
MD5 (/tmp) = 20d3f43aec53f20421b2d8dbbf8bb22e
MD5 (/tmp/.X11-unix) = 0655053c4521848b7187b2907508611b
MD5 (/tmp/screens) = 368db82a7d3148e078d967bd84f6a231
MD5 (/tmp/screens/S-root) = 03e04349ebe0d0f4ba4b580853759447
MD5 (/tmp/screens/S-keramida) = 6f22c96cfc6f7469dcd53c74bbf36178
MD5 (/tmp/ssh-pzxuCH2T) = 495a504785f1cb5a80e325303ea51806




More information about the Linux-greek-users mailing list