I have a two part question.
I have a series of files with the names "file.pdb.#", where # is an integer.
1.) How can I script to rename all the "file.pdb.#" to "file_#.pdb", where the integer is preserved? All files are in the same directory.
I presumably need to read in the constant string (file.pdb.) with the variable being the #.
2.) Even more important, how would I have searched for this answer, properly, among answered questions? I have no doubt this question has been answered many times before. However, I am not sure how I might have properly searched for the answer to this question (and obviously I should learn to search previously answered questions better to not bother people in the future). I cannot imagine what the right search string is (googling how to read in files and rename them in Linux is awfully generic and I waded through suggestions not germane to this sort of file format manipulation).