the above code will not work if there are more than 2 dots in between the file name.
i always want to insert the date time stamp just before the final extension of the file. how can i do?
$ sh datetime.sh
datetime.sh: line 2: .gk: command not found
FILE_NAME = {s1.txt.xls.gk}
MOD_FILE_NAME = {s1.txt.xls.20130725030022368251000}
its not adding the last extension to the modifies file name and also gives an error on line 2. can you tell me how can i store the new file name in a variable please??