I have hundered's of files of the name
CMP_PORT_IN_P200903271623042437_20090328122430_err.xml in error directory of todays date ie 20090328 and in the file name 5th field specifies date only now i want to move all files of 20090328 to another directory i.e reprocess directory.
We may need to be more specific to avoid the chance of false matches and avoid making the command line too long when there are hundreds of files.
ls CMP_PORT_IN_P??????????????????_22090328??????_err.xml | while read FILENAME
do
# Remove echo if the command does what you want
echo mv "${FILENAME}" reprocess_dir
done