Originally Posted by rn_
Please clarify, is your question on how to find the file, or how to rename the file?
You could use the 'find' (man find) command to find the files. The '-name' parameter can accept wild-cards (eg. '*.[Cc][Ss][Vv]')
and you can use the 'tr' (man tr) command to change the name to lower case (tr [:upper:] [:lower:]).
put these two into a loop or something and you will have a script that renames the file.
The reason I need to find the file first because I dont know the case they upload the file in so a find that will ignore case and change just the file name to lower case
so find -iname file.csv and finds the file FILE.CSV than takes what if fines and runs the found file in a tr command something like
tr -s '[a-z][A-Z]' '[A-Z][a-z]' <FILE.CSV> file.csv
The problem is I not sure how to wrap this into one magic script