user3851659 :
I want add the date next to a filename ("somefile.txt"). For example: somefile_DDMMYYYYHHMMSS.txt
Maybe a script will do or some command in the terminal window. I'm using Linux.
Thanks in advance.
Romeo Ninov :
Something like can do the work:
a=somefile.txt
bname="${a%.*}"
ename="${a##*.}"
date=$(date +%d%m%Y%H%M%S)
echo ${bname}_${date}.${ename}
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=350485&siteId=1