🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #5901

Re: obtener tamaño de un fichero

#5901
From: Mainake
Date: Sun, 31 Aug 2003 17:01
27 lines
1892 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Sun, 31 Aug 2003 18:32:49 +0200, kitano 
 expon�a en su mensaje:
> tam=`du /mnt/bkp/img | cut -c1-7`
> 
> como ve�s uso du para obtener el tama�o de la imagen pero la verdad, me
> parece un poco chapucero. Quisiera saber si hay alg�n comando Linux que
> me diga el tama�o del fichero sin tener que recurrir a du.
> 
Te serviria esto ?

tam=`ls /mnt/bkp/img | awk '{ print $5 }'`

- -- 
Mainake <mainake@escomposlinux.org>		    
Debian 3.0 (Woody) --- Usuario Linux registrado n�: 90215
PGP Pub Key en pgp.escomposlinux.org ID:0x68EB97FD

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE/UinewanSomjrl/0RArhxAKCNo5w1AcUlR5EPrkGG8/ov13eKZACghyZU
irIHXCdJbp0vdyYj7vE5u3w=
=jWvn
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrnbl4aet.rp.mainake@atolon.linux.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!cox.net!news-xfer.cox.net!mainake.escomposlinux.org!escomposlinux.org!not-for-mail
References: <bit7vv$gi9$1@cernicalo.emeteo.local>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,608fe3197f689bce
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-08-31 10:01:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!cox.net!news-xfer.cox.net!mainake.escomposlinux.org!escomposlinux.org!not-for-mail
From: Mainake <mainake@escomposlinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: obtener tamaño de un fichero
Date: Sun, 31 Aug 2003 17:01:20 +0000 (UTC)
Organization: Ecolnet
Lines: 27
Message-ID: <slrnbl4aet.rp.mainake@atolon.linux.es>
References: <bit7vv$gi9$1@cernicalo.emeteo.local>
Reply-To: mainake@escomposlinux.org
NNTP-Posting-Host: atolon.linux.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: rantanplan.linux.es 1062349280 18024 192.168.66.1 (31 Aug 2003 17:01:20 GMT)
X-Complaints-To: mainake@escomposlinux.org
NNTP-Posting-Date: Sun, 31 Aug 2003 17:01:20 +0000 (UTC)
User-Agent: slrn/0.9.7.4 (Linux)