[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: link
From: |
Dale R. Worley |
Subject: |
Re: link |
Date: |
Fri, 22 Jul 2016 14:40:01 -0400 |
Pascal <address@hidden> 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
- link, Pascal, 2016/07/22
- Re: link,
Dale R. Worley <=