Page 1 of 1

remove 'b' from filesize meta-data

Posted: 2012-07-29T03:19:18-07:00
by imager
The 'format' command has the option to output the filesize (%e). How to change the output, removing the suffix 'B'?

Re: remove 'b' from filesize meta-data

Posted: 2012-07-29T11:16:49-07:00
by fmw42
imager wrote:The 'format' command has the option to output the filesize (%e). How to change the output, removing the suffix 'B'?
I presume you mean %b and not %e

In usix, use

convert logo: -format "%b" info: | sed -n 's/B//p'

I don't know how to do that in Windows. See http://www.imagemagick.org/Usage/windows/

Please, in the future, identify your platform and version of IM