Shell script to compare file names(without extension) in a directory : <p>My requirement is I will have xml and pdf files like pairs.(e.g.,file1.xml, file1.pdf and file2.xml,file2.pdf) in same folder.</p>

<p>I need to check for xml files which are not having pdf pair and move them to different folder.(e.g., if file3.xml doesn't have file3.pdf, I need to move it to different folder).</p>

<p>Please answer me the shell script to do get this functionality done.</p>
