Skip to content

Commit

Permalink
Add isodate script
Browse files Browse the repository at this point in the history
Outputs the current date in ISO format, useful for string interpolation:

echo foo > "foo-$(isodate).txt"
  • Loading branch information
robmiller committed Feb 28, 2017
1 parent d3ece73 commit 1569106
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/isodate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

date +'%Y-%m-%d'

0 comments on commit 1569106

Please sign in to comment.