Something like:
ls -lag | cut -d ' ' -f 3
Should do the trick, i'm using the bsd ``ls''
try changing the number after -f if its
outputting the wrong column.
HTH,
Jerry.
At 11:49 16/07/01 +0100, hrishy wrote:
> Hi all
>>when i say ls-l i get the following output
>drwxrwx--x 3 bsp bsp 512 Jun 11 1999
>:>-rw-rw---- 1 bsp bsp 634890 May 30 15:18
>CheckSolSP3Stnd
>-rw-rw---- 1 bsp bsp 434334 Jun 26 09:18
>Fileout
>-rw-rw---- 1 bsp bsp 468 Jun 04 06:15
>IMD_b50c.dem
>drwxr-xr-x 2 bsp bsp 512 Apr 12 14:42
>ItalianSP3loc2
>drwx--x--x 2 bsp bsp 512 Jul 02 11:36
>Mail
>drwxr-x--- 2 bsp bsp 512 Jul 02 11:32
>SwedishFrite
>-rw-rw---- 1 bsp bsp 12086 Jul 03 05:37
>build-dd
>>but i wnat to the output to conatin a particular
>column only say forx 3rd column.how di i do this??
>>regards
>hrishy
>>____________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk>or your free @yahoo.ie address at http://mail.yahoo.ie>>--
>Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
>List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!