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
_______________________________________________ Blinux-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/blinux-list