I have some files whose names contain multiple extensions:
$ ls -r File1_345.R.12345 File1_3.234.R.6789 File1_2345.R.2345 File1_12345.R.12345 $
I want to rename them
to remove all the existing extensions and replace them with
Output should be below:
$ ls -r File1_345.txt File1_3.txt File1_2345.txt File1_12345.txt
Is it possible to use find and xargs command?