Differences
This shows you the differences between the selected revisions of the page.
2012-06-25 | 2012-06-30 | ||
removing obvious note, consistency, formatting (martin) | work for me, may depend on shell used, also sed and awk has to be available (martin) | ||
Line 102: | Line 102: | ||
==== Rename a File with Current Date and Time ==== | ==== Rename a File with Current Date and Time ==== | ||
mv ! $(echo "!" | sed "s/\..*$//").$(date '+%Y-%m-%d_%H-%M').$(echo ! | awk -F"." '{ print $NF }') | mv ! $(echo "!" | sed "s/\..*$//").$(date '+%Y-%m-%d_%H-%M').$(echo ! | awk -F"." '{ print $NF }') | ||
- | |||
- | Above does not work. | ||