This will do it. You'll still have to use the "-l", unless you add that
to the function, or change the function to "lsl" and add it, or something:
# in .bashrc, or what ever
function ls
{
/bin/ls $* | awk \
'/^[dDlL-]/{print $9,$10,$11,$1,$2,$3,$4,$5,$6,$7,$8}' \
'/^[^dDlL-]/{print $0}';
}
On Fri, 13 Aug 2004, Lorenzo Prince wrote:
I need to possibly make a script or in some other way change the behaviour of ls
so that something like
-rw-r--r-- 1 lorenzo lorenzo 16106 Dec 21 1997 pongmey.tet
looks more like
pongmey.tet -rw-r--r-- lorenzo lorenzo
Is there an easy way to do this or would I have to use something like awk or sed,
which I know little or nothing about? Would I need to completely write a program
from scratch to do this, or does one already exist, or could this possibly be
done through a relatively simple script?
Thanks for any help,
PRINCE
_______________________________________________
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list
_______________________________________________
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list