Differences
This shows you the differences between the selected revisions of the page.
2022-02-08 | 2022-05-04 | ||
Restored revision 1612445401. Undoing revision 1644320396. (martin) (hidden) | Added warning about partial loss of filename for names that contain multiple dots. (76.167.224.130) | ||
Line 172: | Line 172: | ||
cp ! $(echo "!" | sed "s/\..*$//").$(date '+%Y-%m-%d_%H-%M').$(echo ! | awk -F"." '{ print $NF }') | cp ! $(echo "!" | sed "s/\..*$//").$(date '+%Y-%m-%d_%H-%M').$(echo ! | awk -F"." '{ print $NF }') | ||
</code> | </code> | ||
+ | Note that you will lose a portion of the file name for files with multiple dots ( **.'s** ). | ||
==== Rename a File with Current Date and Time ==== | ==== Rename a File with Current Date and Time ==== |