help with linux shell script

HI im a novice with shell scripts but i need help with a random script I have this folder filled with 500 different file names... I need help creating a script that will take each filename and make a new folder named that filename and then move that file into the newly created folder. Then the script will move to the next file in the folder and repeat till all 500 folder have been made and files have been moved into them...

If anyone can help me i would apprieate it so much

Thanks Eric

Against my better judgement, since this sounds like homework:

cd /path/to/folder ## adjust to taste
for file in *
do
  mkdir temp && mv "$file" temp && mv temp "$file"
done