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

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

Re: [shell-script] Extrair campo de ls


From: Aurelio Marinho Jargas
Subject: Re: [shell-script] Extrair campo de ls
Date: Fri, 16 Jan 2004 15:06:13 -0300 (ART)

oi fabio,

 --- Fabio Hochleitner <address@hidden> escreveu:
> 
>   ls -l billing.txt | cut -f5 
> 
> -rw-r--r--   1 faho     mjv         2480 Nov 26 12:38 
> dwsig.txt


insere um tr -s' ' |  antes do cut que deve funcionar :)

$ ls -l /etc/passwd
-rw-r--r--    1 root     root         1648 Out 28 09:59 /etc/passwd
$ ls -l /etc/passwd | tr -s ' ' | cut -d' ' -f5
1648


falou

=====
-- 
Aurelio Marinho Jargas - De volta para Curitiba & Conectiva
RAC! RAC! RAC! http://aurelio.net/rac
II SDSL visto pela lente verde http://aurelio.net/curso/IIsdsl

______________________________________________________________________

Yahoo! GeoCities: a maneira mais fácil de criar seu web site grátis!
http://br.geocities.yahoo.com/


reply via email to

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