Re: Changing the behaviour of ls, possibly via a script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]