Is there a fast ksh method (builtin, operator, etc.) for getting
the size of a file in bytes?

I generally use $(wc -c < file) because I think it's more portable than parsing 'ls' output, but it's expensive just from the fork&exec alone -- maybe even more expensive than 'ls' if wc is actually *counting* bytes as opposed to getting the size from the i-node.

But it would sure be handy if I could use something like $(#<file).

Regards,
 Mario DeFazio
   "ksh customer since 1983"


_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to