How to change attributes of all symlink targets inside a directory ?
/usr/bin/find /mydir -type l | xargs /bin/readlink | /usr/bin/chattr +s
piping three commands wont works.
Thanks.
|
How to change attributes of all symlink targets inside a directory ?
piping three commands wont works. Thanks. |
|||
|
|
This will
A problem could occur if you have newlines within file names, but that is usually just a hypothetical problem. |
|||
|
|