Pascal <patate...@gmail.com> writes: > how find links and exec command on pointed files ? > > $ touch a > $ ln -s a b > $ ll > a > b -> a > $ find -H . -type l -exec md5sum '{}' \; > d41d8cd98f00b204e9800998ecf8427e ./b > > md5sum is running on "./b" and not on "./a" like excepted :-(
But that is the behavior expected running md5sum on "./b"! $ touch a $ ln -s a b $ ll total 248 drwxr-xr-x. 2 worley worley 4096 Jul 22 14:37 . drwxr-xr-x. 53 worley worley 245760 Jul 22 14:37 .. -rw-r--r--. 1 worley worley 0 Jul 22 14:37 a lrwxrwxrwx. 1 worley worley 1 Jul 22 14:37 b -> a $ find -H . -type l -exec md5sum '{}' \; d41d8cd98f00b204e9800998ecf8427e ./b $ find -H . -type l -exec echo md5sum '{}' \; md5sum ./b $ md5sum ./b d41d8cd98f00b204e9800998ecf8427e ./b $ Dale