|
From: | Gentil de Bortoli Jr |
Subject: | Re: [shell-script] Tamanho do arquivo !!!! |
Date: | Thu, 12 Jan 2006 12:53:01 -0200 |
User-agent: | Thunderbird 1.5 (X11/20051201) |
> Gostaria de saber como posso colocar em um variavel o tamanho do arquivo ? Sim. Gostaria. Como? :) ... Além do comando 'du' (Disk Usage) há outras alternativas como o 'wc' e o próprio 'ls'. VAR=$(ls -sh Arquivo | cut -d " " -f 1) VAR=$(wc -c Arquivo | cut -d " " -f 1) []s Gentil de Bortoli Júnior http://gentil.bortoli.com.br "There Is No Gene For The Human Spirit"
[Prev in Thread] | Current Thread | [Next in Thread] |