we want to replace the script file extension

so we did the following: 

```
 new_name=` echo run_fix.bash  |  sed 's/[.].*$//' `
 new_file_extension=".in_hold.txt"
 new_name=$new_name$new_file_extension

 echo $new_name
 run_fix.in_hold.txt

```

but I feel my approach is not so elegant 

note - because script extension could be bash or perl or python and also the target extension could be any thing after "." we want global replacement 

---

I am using redhat 7.2