Duplicate name diff file ext

Hi All

I have converted a load of files to different formats but I am now left with a folder with loads of differnt files

All of them are called the same, the only differnce is the file extension (Sizes also vary so cannot do anything with MD5)

example
file1.abc
file1.xyz
file2.abc
file2.xyz

I am after a bash script to search the folder and move the abc files but only if there is a xyz file

Not sure if all converted so need to make sure only the originals which converted are moved

Can anyone help

Perhaps the following is enough to give you a jumpstart to the final solution:

for f in *.abc; do
    if [ -e "${f%.*}".xyz ]; then
        echo xyz version exists
    fi
done

Regards and welcome to the forum,
Alister

cool

i could just replace the below with a move command i think

Cheers
echo xyz version exists