X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=31e94a044a497525ca29016a84e3cea75b4c6e93;hb=6c098e82fd059487b6097d31cdf8e199de7d792e;hp=55a77d193ba62c7775272913c069040427c79a54;hpb=dbe3a7d9104352d69efdaa5eca600908ecc9bba8;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 55a77d19..31e94a04 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -6,6 +6,12 @@ if [ ! -z "$SHELL_DEBUG" ]; then echo function definitions begin... fi +# a handy little method that can be used for date strings. it was getting +# really tiresome how many different ways the script did the date formatting. +function date_stringer() { + date +"%Y_%m_%e_%H%M_%S" | tr -d '/\n/' +} + # makes a directory of the name specified and then tries to change the # current directory to that directory. function mcd {