Overriding amended time stamps

I require to make it so the files in existing directory site get modified with a timestamp. It functions penalty for the very first time, once I run it once more it includes an additional timestamp to the documents. I require a means to change the timestamp, not simply include in it.

#!/bin/sh
IFS='
'

time=$(date)

for file in *
do
     mv $file "$file""$time"
done

I'm attempting to consider just how to overwrite the old files, yet due to the fact that the name adjustments when it obtains modified with the timestamp I can not consider a means.

3
2022-07-25 20:40:27
Source Share
Answers: 0