3
Is it possible to change the order of displayed columns when running ls -l
on *nix (or dir
on Windows)?
For example, I'd like to see the date modified, then the name, then other fields (or select only the ones I want, and their order.
How would this be done without merely using cut
and trimming undesired fields (since that does not address the issue of re-ordering)?
1as a note regarding cut, you'd get more milage out of awk in this case. ls -al | awk '{print $3 " " $1}' – Sirex – 2011-07-15T11:27:13.353