adding date timestamp to filename
I am looking under solaris to the following :
:start
date
cp filename filename19:23:33
goto start
where 19:23:33 is the time when the cp has to be done.
I know it is possible under linux :
#!/bin/bash
filename="date.txt"
timestamp=(date '+H:%M:%S' )
fullname=$filename$timestamp
cp date.txt $fullname
But how can I do it under Solaris ?
Tnx in advance
|