I have a directory full of files ending with different extensions, how would I list/select only the files ending with .in and corresponding .out that share the same basename?e.g.file1.txtfile1.infile2.infile3.infile2.outfile3.outWhat I want to select from these files are:file2.infile2.outfile3.infile3.out
List any file ending with .in and corresponding .out with shell script
shell;scripting;ls