[CentOS] awk help
Ross Walker
rswwalker at gmail.comWed Dec 1 23:44:48 UTC 2010
- Previous message: [CentOS] awk help
- Next message: [CentOS] awk help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Dec 1, 2010, at 5:07 PM, Christopher Chan <christopher.chan at bradbury.edu.hk> wrote: > 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 You can probably do that last one as a pipe to xargs instead of a shell loop. -Ross
- Previous message: [CentOS] awk help
- Next message: [CentOS] awk help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list