#!/bin/sh
for f in *.JPG; do
  echo "%META:FILEATTACHMENT{name=\"$f\" attr=\"\" autoattached=\"1\" comment=\"\" date=\"1278174422\" path=\"$f\" size=\"`ls -l $f | awk '{printf("%s",$5);}'`\" version=\"\"}%"

done
#for f in *.jpg; do
#  echo "%META:FILEATTACHMENT{name=\"$f\" attr=\"\" autoattached=\"1\" comment=\"\" date=\"1278174422\" path=\"$f\" size=\"`ls -l $f | awk '{printf("%s",$5);}'`\" version=\"\"}%"
#
#done

