From file name: File1_YYYYMMDD.txt to file name: File1.txt
How do I strip out anything after _ and before file ext. so, file name ends up without date stamp on a Linux server
I have files with date and time stamps also, so key part is only to leave file name with extension.
Pl. suggest with actual code in Linux.