[EMAIL PROTECTED] wrote: > > How's this? > > #!/bin/bash > sizeof() { local lies; lies=$(ls -s $1 2>/dev/null); if test -f $1 > then (echo $lies|cut -d' ' -f 1); > else echo NAN; > fi > } > <snip> ls -s reports in 1k blocks... Marc -- Marc Mutz <[EMAIL PROTECTED]> http://marc.mutz.com/ University of Bielefeld, Dep. of Mathematics / Dep. of Physics PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)
- comparing file sizes Steve Youngs
- Re: comparing file sizes Marc Mutz
- RE: comparing file sizes Marc Mutz
- RE: comparing file sizes Baskette, John