euglug.org

[Eug-lug] size of files from a shell script, portably

작성자

카테고리:



horstThu Dec 9 00:27:55 PST 2004

> Date: Wed, 8 Dec 2004 22:35:55 -0800
> From: Jacob Meuser <jakemsr at jakemsr.com>
  ...
>> others print the number of bytes.  Which did you want?
>
> bytes.  the files need to fit on a DVD.
>

I have no idea how universal wc is (though not efficient), but
  wc -c *.mp3
does the math for you.

  - Horst

P.S. In a few years python's function os.stat() will be as popular as 
perl's stat... but of course you'd expected such smelly footnote from my 
end :-)