diff --git a/render.sh b/render.sh index 00c2f8a..0ad7aa8 100644 --- a/render.sh +++ b/render.sh @@ -8,7 +8,8 @@ render_options_night=("MCIR") direction=${f:(-7):(-6)} echo $1 #remove the directory structure from the first argument -file="${1#'/tmp/'}" +f1="${1:0:(-4)}" +file="${f1#'/tmp/'}" #Isolate data values from filename file should begin with YYYYMMDD-HHMM dyear=${file:(0):(4)}