find . -type f -iname “*.TXT” -exec sed -i ‘s/<< …-.-…….. >>//g’ ‘{}’ \;
*Assuming original Bates number uses the following format ABC-X-01234567
Depending on how cygwin is configured be sure to convert files back to ‘DOS’ format after using sed
find . -type f -iname “*.TXT” -exec unix2dos ‘{}’ \;
The find command is good if your files are not organized in a cleanly numbered subfolder structure, or are mixed in with other file types. Usually simply globbing will do the trick a bit faster:
sed -i ‘s/foo/bar/g’ IMAGES/00/0[0-9]/*.TXT ; unix2dos IMAGES/00/0[0-9]/*.TXT
sed == http://sed.sourceforge.net/sedfaq.html
_____________________________________________________________________________________