#!/bin/bash echo " => Converting file in little format for Tx" cd /ramfs FILE=$(find ./ -type f -name *.jpg) convert $FILE -resize 640x496^ lit-$(echo $FILE | cut -d"/" -f2) rm -rf $FILE