I recently needed to delete all the files within ~40 directories that were within a parent directory, without deleting the directories themselves. I ended up manually doing so, but is there a more efficient way of doing this? I.e., is there a linux command that can do this?
For a more clear picture of what I mean:
HomeDirectoryName --> subdirectoryName --> 4 simulation info files
I had the above path, except there are 40 subdirectories, each of which have he 4 simulation files. I needed to delete all the simulation info files without deleting the "subdirectoryName" directories.
It may not be possible, as I searched everywhere for about an hour before finally deciding to do it manually.