#!/bin/sh medfn=$2"_med.jpg" smlfn=$2''_sml.jpg'' echo $1 echo $medfn echo $smlfn cp -f $1 $medfn cp -f $1 $smlfn mogrify -resize 300 $medfn mogrify -resize 150 $smlfn +++++++++++++++++++ end of script error message is as follows: bryan@pundit:~/its/logos$ ./resize.sh "Citizens logo.jpg" testing Citizens logo.jpg testing_med.jpg testing_sml.jpg @@cp: target `testing_med.jpg' is not a directory <==== Why is this happening? @@cp: target `testing_sml.jpg' is not a directory mogrify: unable to open image `testing_med.jpg': No such file or directory. mogrify: unable to open image `testing_sml.jpg': No such file or directory.