Additions:
width=$(eval 'identify -format \"%[fx:w]\" dir1/picture.jpg')
Deletions:
Revision [1362]
Edited on 2010-05-09 02:01:07 by DavePawson [Added example of storing the result in a variable]Additions:
Example storing the result in a variable
width=$(eval identify -format \"%[fx:w]\" dir1/picture.jpg)
$ echo ${width}
"592"
width=$(eval identify -format \"%[fx:w]\" dir1/picture.jpg)
$ echo ${width}
"592"
Revision [994]
Edited on 2009-11-25 09:56:41 by DavidLee [Added example of storing the result in a variable]Additions:
======Command eval======
====Name====
**eval** Evaluates its arguments as a command and executes it
====Synopsis====
**eval** [cmd]
====Examples====
A="echo foo"
eval $A
Result
[[Commands]]
[[CategoryCommands]]
====Name====
**eval** Evaluates its arguments as a command and executes it
====Synopsis====
**eval** [cmd]
====Examples====
A="echo foo"
eval $A
Result
[[Commands]]
[[CategoryCommands]]
Deletions:
$ A="echo foo"
$ eval $A
[[Modules]]