summaryrefslogtreecommitdiff
path: root/src/content/tils/2020/08/12/filename-timestamp.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/tils/2020/08/12/filename-timestamp.adoc')
-rw-r--r--src/content/tils/2020/08/12/filename-timestamp.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/tils/2020/08/12/filename-timestamp.adoc b/src/content/tils/2020/08/12/filename-timestamp.adoc
index 1cbe404..aa8d63b 100644
--- a/src/content/tils/2020/08/12/filename-timestamp.adoc
+++ b/src/content/tils/2020/08/12/filename-timestamp.adoc
@@ -5,7 +5,7 @@ When writing Jekyll posts or creating log files with dates on them, I usually
struggle with finding a direct way of accomplishing that. There's a simple
solution: `date -I`.
-[source,shell]
+[source,sh]
----
./my-program.sh > my-program.$(date -I).log
cp post-template.md _posts/$(date -I)-post-slug.md
@@ -18,7 +18,7 @@ I always had to read `man date` or search the web over and over, and after doing
this repeatedly it became clear that both `date -I` and `date -Is` (`s` here
stands for seconds) are the thing that I'm looking for 95% of the time:
-[source,shell]
+[source,sh]
----
# inside my-program.sh
echo "Program started at $(date -Is)"