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

Re: "fields" in files



On Sun, Jan 30, 2011 at 02:53:14PM +0200, Andrei Popescu wrote:
> On Du, 30 ian 11, 12:47:43, Camaleón wrote:
> > 
> > sm01@stt008:~$ ls -l | awk '{print $9}'
> > 
> > Desktop
> > Documentos
> > file:
> > News
> > PDF
> 
> No need for awk, ls will do that with the -1 (the digit 1) option or by 
> default if the output is not a terminal (ex. a pipe).

Also "stat" command is quite handy to get file attribute information
directly in a format you wish :-)


Reply to: