Hey guys, there is new problem. When I check folder list in bash, I see all directories with space character, now having backslash. In WinSCP this backslash is not visible. Please see the image with directory list http://clip2net.com/clip/m278717/c0c2c-clip-71kb.png Can I do something to remove ...
With regard to spaces, try this #!/bin/bash OLDIFS=$IFS IFS=$'\n' cd list=`find /home/path/public_html/watermark/test/original -type d` echo "list=$list" for directory in $list; do echo "directory=$directory" cd $directory mogrify -draw "gravity center image src-over 0,0 150,200 '/home/path/public ...
Hi guys, I see this post is quite old but it helped me out to set a script for mogrify. Only problem I have is that it works only for subfolders without space or special characters. Can you correct my script to work also with other characters. This would be like put "directory name" in double quotes ...