6

bash: redirect stderr to file including name of file with the error

view full story
linux-howto

http://www.linuxquestions.org – First, my script: Code: meow="Wonderful Gentlemen" for file in $(ls *jpg) do         query=$(exiv2 -g Iptc.Application2.FixtureId $file)         jobid=$(echo $query | cut -d" " -f4-)         echo -e "Read $file. Next!"         if [ "$jobid" = "$meow" ]; then echo "$file">>frenchgents;fi done Now the command I've been using to execute it: Code: frenchgentsfinder.sh 2>>frencherrors.TX No (HowTos)