Changing the behaviour of ls, possibly via a script
Tim Chase
blinux.list at thechases.com
Fri Aug 13 21:55:41 UTC 2004
> Tim: why did you skip $2 in the awk version?
On my version of /bin/ls on two different boxes returned the
hard-link count as the 2nd parameter. It could easily have been
included if that information was germane to the OP...just add
another "%s" in the format string, and toss the $2 in at the
associated position in the parameter list. However, as the OP
just wanted the file-name, the permissions, and the owner/group,
I just used those fields.
Does your version of ls return something else in the 2nd column?
-tim
More information about the Blinux-list
mailing list