while read filenamedo[ -f "$filename" ] && cp "$filename" ./Selected_ID/ || echo "no this file: $filename"done#if exists then cp to the destination directory, else echo the filename