From 959a984afb33e3f79c77a4de52a2ee0bccc5bee3 Mon Sep 17 00:00:00 2001 From: Rockingcool Date: Mon, 21 Nov 2022 08:12:56 -0600 Subject: [PATCH] Added file to create screenshot name. --- scrshotName.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scrshotName.sh diff --git a/scrshotName.sh b/scrshotName.sh new file mode 100755 index 0000000..a298f88 --- /dev/null +++ b/scrshotName.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +curDATE="Screenshot_" + +#Add the year to the variable +curDATE+=$(date | awk '{print $7}') + +#Add the month and day +curDATE+="-"$(date +"%m-%d") + +#Add the time +curDATE+="_"$(date +"%H-%M-%S") + +curDATE+=".png" + + +echo $curDATE