John H. Robinson, IV wrote:
> 
> ls --size --block-size=1 $1 | cut -d" " -f1

ls --size --block-size=1 $1 | cut --delimiter=" " --fields=1

> will return the filesize, in bytes.
> 
> As a general note, I tend to recommend using the long options in
> scripts. It helps in documentation.

Good thing I listen to my own advice!


> -john


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to