sed expressions

bala s guthy bguthy at engin.umich.edu
Wed Mar 27 13:29:40 AEST 1991


Can some kind soul explain why the following command prints the first
and the last columns of the ls -l command.



% ls -l | sed 's/[1-9].* //'
% drwx------  xy1991


I can see why it prints the first field but not why it prints the last one.

Thank you.



More information about the Comp.unix.questions mailing list