shell-script-pt
[Top][All Lists]
Advanced

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

Re: [shell-script] Pegar Campos ????????


From: Enderson Maia
Subject: Re: [shell-script] Pegar Campos ????????
Date: Tue, 17 Aug 2004 09:30:54 -0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.6) Gecko/20040418

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gustavo V. Goulart wrote:

| Olá lista,
|
| tenho uma saida básica do comando ls -l:
|
| -rw-r--r--    1 gustavo  user     29651 2004-06-17 16:59 TABELA.TXT
|  drwxr-xr-x   10 gustavo  user      6296 2004-07-19 12:19 themas
| -rw-r--r--    1 gustavo  user      3566 2004-07-01 10:28 Unit1.dcu
|
| Como posso pegar somente os campos com o nome do dono do arquivo e
| o tamanho dos arquivos ? Ex.:
|
| gustavo    29651 gustavo     6296 gustavo     3566
|
| Agradeço qualquer dica.
|
| Valeu ...

Pode-se usar o awk tb

ls -l | awk '{print $3 "\t" $5}'

Sem mais,

- --
Enderson Maia

ICQ: 8817986
Linux User: 286130
GPG: http://tinyurl.com/2ca3a
=============================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBIfp9JD6uK4s2rkkRAm0gAJ92mskGh8WmQvXP+Dnh3vuyH/1sjACgn0W3
lLZEOoaaBte5aW/BypqM3uI=
=H/bn
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]