I have multiple files in one folder:
ABA.xy
BEB.xy
ACA.xy
The same files with different extension in another folder
ABA.rr
BEB.rr
ACA.rr
Then I have single folder for each file name
ABA
BEB
ACA
I would like to do the following. if the file with extension .xy
and .rr
have the same name as the folder, move to that folder.
For example
ABA.xy and ABA.rr in ABA
I am familiar with mv
but I think that here I have to write a small script to do that.