🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: obtener tama�o de un fichero

#5910
From: Alvaro G. Vicario
Date: Mon, 01 Sep 2003 10:49
6 lines
1353 bytes
> stat -c %s /mnt/bkp/img | cut -c1-6
>
> M�s que nada es que el tama�o lo da en bytes, y si no formateas la
> salida te sale una ristra de 9 cifras :)

Pues hombre, gu�rdalo en una variable y luego lo divides entre 1024*1024 ;-)
Technical Details
Message-ID: <biv87i$daco1$1@ID-157797.news.uni-berlin.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!ision!fu-berlin.de!uni-berlin.de!10.red-80-37-15.pooles.rima-tde.NET!not-for-mail
References: <bit7vv$gi9$1@cernicalo.emeteo.local> <Xns93E8C3AA2671DkAlvaro@130.133.1.4> <bitsdn$ott$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-09-01 03:49:24 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!ision!fu-berlin.de!uni-berlin.de!10.red-80-37-15.pooles.rima-tde.NET!not-for-mail
From: "Alvaro G. Vicario" <alvaro.QUITAR_REMOVE@telecomputeronline.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: obtener tama�o de un fichero
Date: Mon, 1 Sep 2003 12:49:21 +0200
Lines: 8
Message-ID: <biv87i$daco1$1@ID-157797.news.uni-berlin.de>
References: <bit7vv$gi9$1@cernicalo.emeteo.local> <Xns93E8C3AA2671DkAlvaro@130.133.1.4> <bitsdn$ott$1@cernicalo.emeteo.local>
NNTP-Posting-Host: 10.red-80-37-15.pooles.rima-tde.net (80.37.15.10)
X-Trace: news.uni-berlin.de 1062413363 13972225 80.37.15.10 (16 [157797])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165