i have downloaded several pdf files(with various names) and stored them in a specific directory (for example, Downloads/directory1).
i would like to create folders to store these files under the same directory, using the names of the original files, but without the extension pdf.
for example, for a file named maths.pdf, i want to create the folder maths and store the pdf in it.
i made several attempts creating a script using commands as basename and for, but i didn't have any luck.