I'm working on bash script.
I have a var with a string in it. This is the string:
tSA_15_20161014_11-12-50
Basically the format is tSA_(id)_(year)(month)(day)_(hour)-(min)-(seg)
Important information:
- The id can be a number from 0 to 999
- The year format is yyyy
- Month format mm
- Day format dd
- Hour format 24h
The string I want to get is something like:
20161014111250
Which is yyyymmddHHMMSS
English is not my native language, so if there's something you can't understand please tell me. Thank you.