```
for i in *.jpg
do
    j = '$i | cut -d . -f 1'
    convert $i $j".png"
done

```

temp.sh: line 3: j: command not found

I know about mogrify, just wanted to know how to get variables done in bash.