cleaning and moving a lot of files.
[feisty_meow.git] / scripts / core / functions.sh
index 55a77d193ba62c7775272913c069040427c79a54..a8f570a09b3e7d5c554384076cabef61d35c8c9e 100644 (file)
@@ -6,6 +6,10 @@ 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 {