[CentOS] awk help

Wed Dec 1 22:07:55 UTC 2010
Christopher Chan <christopher.chan at bradbury.edu.hk>

On Thursday, December 02, 2010 05:09 AM, ann kok wrote:
> Hi all
>
> Anyone can help to let me know how to
>
> ls -1 | lsattr

lsattr `ls -1`

>
>
> ls -al /folder | awk '{ print $2}' | lsattr
>


for i in `ls -al /folder | awk '{ print $8}'`; do lsattr /folder/$i; done