Code: Select all
#!/bin/bash
identify sand.jpg -format "%f,%w,%h"
echo %w
Code: Select all
#!/bin/bash
identify sand.jpg -format "%f,%w,%h"
echo $%w
Code: Select all
#!/bin/bash
identify sand.jpg -format "%f,%w,%h"
echo $(%w)
Code: Select all
#!/bin/bash
identify sand.jpg -format "%f,%w,%h"
echo $(w)
Code: Select all
#!/bin/bash
identify sand.jpg -format "%f,%w,%h" > $newVariable
echo$newVariable
Code: Select all
#!/bin/bash
newVariable=identify sand.jpg -format "%f,%w,%h"
echo$newVariable