euglug.org

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

작성자

카테고리:



Bob MillerThu Dec 9 01:10:02 PST 2004

horst wrote:

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

Good idea.  wc (including the -c flag) is largely unchanged since at
least 6th Edition Unix, circa 1975.  Probably longer.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     kbob at jogger-egg.com