Half of a ls -l ? [INFO-UNIX Digest V12#102]

Karl Anderson karl at forest.gsfc.nasa.gov
Tue May 14 04:22:36 AEST 1991


robby at nuchat.sccsi.com (Robert Oliver Jr.) writes:

>  Has anybody out there ever printed out the size,date and name of a file
>without the permitions and owners just the size,date & name.  I would like 
>to know how you did it!  

Do you have the 'cut' command?  Here's an alias I have defined in my .cshrc 
on my Suns:

alias sdir      'ls -lta \!* | cut -c33- | more'

The "-c33-" option to cut says "print everything from column 33 on."

Karl A. Anderson		| Internet: karl at forest.gsfc.nasa.gov
NASA/GSFC code 923 (STX)	| voice: (301) 286-3815
Greenbelt, MD 20771		| #include "std_disclaimer"



More information about the Comp.unix.questions mailing list