#!/bin/sh mypath="`pwd`" for filename in "$@" do if [ -n "$*,?" ];then tesseract "$mypath/$filename" "${filename%%.*}" -l fra fi done {} exit 0