Tools and things that make my life easier - y'all might like them too
timestamp-my-file
Adds a timestamp to one or more files by appending _YYYY-mm-dd_HH.MM.SS.ffffff
to the name(s).
Syntax: timestamp-my-file file ...
Specify one or more files.
$ touch foo
$ timestamp-my-file foo
renamed 'foo' -> 'foo_2022-03-13_15.47.55.525369'
$ timestamp-my-file foo_2022-03-13_15.47.55.525369
2022-03-13 15:48:10,319 WARNING /home/mrbruno/bin/timestamp-my-file:56 foo_2022-03-13_15.47.55.525369 appears to already have timestamp
$
mv -v
under the covers to do the renames.mv
will print any errors: