X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=c4571b994a34096ae329b180c3f287e385904936;hb=ce93ca963c3d3daf91a8c2b67dd622f17aa5261b;hp=72258731f964960b810796801498c43909b913a9;hpb=8c6a856165518a11b6f44e3ee145a3d3c9fada20;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 72258731..c4571b99 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -21,7 +21,7 @@ if [ -z "$skip_all" ]; then # 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/' + date +"%Y_%m_%d_%H%M_%S" | tr -d '/\n/' } # makes a directory of the name specified and then tries to change the @@ -53,13 +53,9 @@ if [ -z "$skip_all" ]; then \rm "$tmppid" local appropriate_pattern='s/^.* *\([0-9][0-9]*\) *$/\1/p' for i in "${patterns[@]}"; do -#echo "pattern $i seek" >>~/crap.txt PIDS_SOUGHT+=$(cat $PID_DUMP \ | grep -i "$i" \ | sed -n -e "$appropriate_pattern") -#cp $PID_DUMP ~/crud -#echo heres the dump after grep >>~/crap.txt -#cat $PID_DUMP | grep -i "$i" >>~/crap.txt if [ ${#PIDS_SOUGHT[*]} -ne 0 ]; then # we want to bail as soon as we get matches, because on the same # platform, the same set of patterns should work to find all