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

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

Re: [shell-script] Pegar listagem de arquivo zip


From: Thobias Salazar Trevisan
Subject: Re: [shell-script] Pegar listagem de arquivo zip
Date: Thu, 10 Apr 2003 17:25:55 -0300 (BRT)

ae luciano

On Thu, 10 Apr 2003, Luciano ES wrote:

>       unzip -l $arquivo
>       Mas aí ele gera isso aqui:
>
> Archive:  espaços.zip
>   Length     Date   Time    Name
>  --------    ----   ----    ----
>     22109  03-03-03 22:51   DOWNLOADER-HELP.chm
>    180224  03-05-03 11:39   Downloader.exe
>       464  03-05-03 11:36   Example Batch File.bat
>      1144  03-05-03 11:40   Example Download Link.lnk
>      3862  03-05-03 11:43   License.txt
>  --------                   -------
>    207803                   5 files

se vc tiver bash pode fazer:

unzip -l $arquivo | sed -n '/[0-9]\{2\}\-/p' |\
while read c1 c2 c3 c4;do
        echo $c4
done

em sed pode usar algo como:

$ unzip -l $arquivo | sed -n 's/^.*[0-9]\{2\}:[0-9]\{2\} *//p'


falow

thobias
-------
echo 24883721290304465999833114447114149701898P | dc
-------
http://www.lcp.coppe.ufrj.br/~thobias

____________________________
|
| Against - HTML Mail
| Against - MS ATTACHMENTS
|
----------------------------



reply via email to

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