I saw this on the web somewhere but for the life of me can't find it now...
How do I find specific files from a directory? IE,

Code:
Directory -->
   yu.txt
   loki.uj
   blah.uj
   ju.uj
I want to find all files, no matter their names, with a .uj extension (not really, but thats an example) and take the name of the file (without the extension, IE, varone := loki) and assign it to a variable.

How would I do this?