Permalink
Browse files

Merge pull request #1 from richo/richo_hax

Richo hax
  • Loading branch information...
samurai committed Jun 5, 2012
2 parents ddb60ae + 745abf9 commit a1a44fa350dadd8b99900c98d6bb03b02e66371f
Showing with 4 additions and 4 deletions.
  1. +4 −4 autoshot.sh
View
@@ -6,7 +6,7 @@ MONTH_ENUM="Jan:01 Feb:02 Mar:03 Apr:04 May:05 Jun:06 Jul:07 Aug:08 Sept:09 Oct:
getMonth()
{
##$1 here is the short-string representation of a month
- for month in `echo $MONTH_ENUM`; do
+ for month in $MONTH_ENUM; do
echo $month | grep $1 | awk -F ':' '{print $2}'
done ;
@@ -24,9 +24,9 @@ doPadding()
}
##this will return the date that is most recent
-##the order the dates are put in matters very much, as
+##the order the dates are put in matters very much, as
##the log and vim-cmd date formats differ. this function
-##takes $1 from the log and $2 from vim-cmd, converts them
+##takes $1 from the log and $2 from vim-cmd, converts them
##into the standard comparison format, runs that through sort -rn,
##and finally returns the original ($1 or $2, raw from their sources)
##as the 'most recent event'
@@ -38,7 +38,7 @@ cmptimes()
##so all we had to do was convert string month to int, then rebuild
##in the proper format
cmp_offtime="`echo $1 | awk '{print $NF}'`-$cmp_offtime_month-`echo $1 | awk '{print $2" "$3}'`"
- ##snapshot dates from vim-cmd are much more of a beating as a
+ ##snapshot dates from vim-cmd are much more of a beating as a
##number of different values arent padded, the below rectifies that
cmp_shottime_date="`echo $2 | awk '{print $1}' | awk -F '/' '{print $3" "$1" "$2}'`"
cmp_shottime_year=`echo $cmp_shottime_date | awk '{print $1}'`

0 comments on commit a1a44fa

Please sign in to comment.