cat /tmp/out2.lst | xargs -i dirname {}|sed -e "s/${SOURCE_DB_SID}/${TARGET_DB_SID}/"|\
sed "s/$SOURCE_DATA_DEST/$TARGET_DATA_DEST/g"|sort -u|
while read line
...
...
done
The above existing code works Ok. However if substitution in sed didn't occur this must to be an exception I need to know. Is there any way to find it out