remove 'b' from filesize meta-data
remove 'b' from filesize meta-data
The 'format' command has the option to output the filesize (%e). How to change the output, removing the suffix 'B'?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: remove 'b' from filesize meta-data
I presume you mean %b and not %eimager wrote:The 'format' command has the option to output the filesize (%e). How to change the output, removing the suffix 'B'?
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