Skip to content

Commit

Permalink
Replace all backticks for command substitution
Browse files Browse the repository at this point in the history
All instances where backticks are used for command substitution are
replaced with $( ). This standardizes usage around $( ), which can
be nested and does not be confused with single quotation marks.

Refs: NOAA-EMC#397
  • Loading branch information
WalterKolczynski-NOAA committed Dec 11, 2021
1 parent dd03ed0 commit 51910b3
Show file tree
Hide file tree
Showing 190 changed files with 1,116 additions and 1,116 deletions.
2 changes: 1 addition & 1 deletion docs/doxygen/compile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ elif [ $machine = "JET" ]; then
else
echo "machine $machine is unrecognized, ABORT!"
echo "try system doxygen"
doxygen=`which doxygen`
doxygen=$(which doxygen)
fi

$doxygen
Expand Down
2 changes: 1 addition & 1 deletion driver/gdas/run_JGDAS_NCEPPOST.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export envir=prod

# set up running dir

export user=`whoami`
export user=$(whoami)
export DATA=/gpfs/hps/ptmp/${user}/gdas.${PDY}${cyc}_nemsio_mpiio
mkdir -p $DATA
cd $DATA
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_analysis_high.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export CDATE=2017030806
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_analysis_high_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_enkf_fcst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ fi
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_enkf_fcst_grp${grp}_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_enkf_inflate_recenter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export CDATE=2017011900
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_enkf_inflate_recenter_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_enkf_innovate_obs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ fi
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_enkf_innovate_obs_grp${grp}_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_enkf_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export CDATE=2017011900
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_enkf_post_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_enkf_select_obs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export CDATE=2017030806
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_enkf_select_obs_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_enkf_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export CDATE=2017030806
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_enkf_update_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_gdas_forecast_high.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export CDATE=2017012506
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gdas_forecast_high_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
8 changes: 4 additions & 4 deletions driver/gdas/test_gdas_gldas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export CDATE=${CDATE:-2019110700}
#############################################################
export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=`echo $CDATE | cut -c1-8`
export PDY=$(date -u +%Y%m%d)
export PDY=$(echo $CDATE | cut -c1-8)

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=`echo $CDATE | cut -c9-10`
export cyc=$(echo $CDATE | cut -c9-10)
export cycle=t${cyc}z

set -xa
Expand Down
6 changes: 3 additions & 3 deletions driver/gdas/test_jgdas_verfozn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export NET=${NET:-gfs}
export RUN=${RUN:-gdas}


export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
export job=gdas_verfozn.${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
export envir=${envir:-test}

me=`hostname | cut -c1`
me=$(hostname | cut -c1)
export DATAROOT=${DATAROOT:-/gpfs/${me}d2/emc/da/noscrub/${LOGNAME}/test_data}
export COMROOT=${COMROOT:-/ptmpp1/${LOGNAME}/com}
export OZN_WORK_DIR=${OZN_WORK_DIR:-/stmpp1/${LOGNAME}/oznmon.${pid}}
Expand Down
6 changes: 3 additions & 3 deletions driver/gdas/test_jgdas_verfozn_cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export NET=${NET:-gfs}
export RUN=${RUN:-gdas}


export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
export job=gdas_verfozn.${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
export envir=${envir:-test}

me=`hostname | cut -c1`
me=$(hostname | cut -c1)
export DATAROOT=${DATAROOT:-/gpfs/hps3/emc/da/noscrub/${LOGNAME}/test_data}
export COMROOT=${COMROOT:-/gpfs/hps2/ptmp/${LOGNAME}/com}
export OZN_WORK_DIR=${OZN_WORK_DIR:-/gpfs/hps2/stmp/${LOGNAME}/oznmon.${pid}}
Expand Down
6 changes: 3 additions & 3 deletions driver/gdas/test_jgdas_verfrad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export PDATE=${PDATE:-2018022112}
#############################################################
# Specify whether the run is production or development
#############################################################
export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
export job=gdas_verfrad.${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
export envir=para
me=`hostname | cut -c1`
me=$(hostname | cut -c1)
export DATAROOT=${DATAROOT:-/gpfs/${me}d2/emc/da/noscrub/${LOGNAME}/test_data}
export COMROOT=${COMROOT:-/ptmpp1/$LOGNAME/com}

Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_jgdas_verfrad_cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export PDATE=${PDATE:-2016100106}
#############################################################
# Specify whether the run is production or development
#############################################################
export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
export job=gdas_verfrad.${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
6 changes: 3 additions & 3 deletions driver/gdas/test_jgdas_vminmon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export PDATE=${PDATE:-2016030706}
#############################################################
# Specify whether the run is production or development
#############################################################
export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
me=`hostname | cut -c1`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
me=$(hostname | cut -c1)

export job=gdas_vminmon.${cyc}
export pid=${pid:-$$}
Expand Down
4 changes: 2 additions & 2 deletions driver/gdas/test_jgdas_vminmon_cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export PDATE=${PDATE:-2016030700}
#############################################################
# Specify whether the run is production or development
#############################################################
export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
export job=gdas_vminmon.${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gfs/test_gfs_analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export CDATE=2017040700
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gfs_analysis_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gfs/test_gfs_forecast_high.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export CDATE=2017012506
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gfs_forecast_high_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
4 changes: 2 additions & 2 deletions driver/gfs/test_gfs_forecast_low.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export CDATE=2017012506
# Specify whether the run is production or development
#############################################################
export RUN_ENVIR=para
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export PDY=$(echo $CDATE | cut -c1-8)
export cyc=$(echo $CDATE | cut -c9-10)
export job=gfs_forecast_low_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
6 changes: 3 additions & 3 deletions driver/gfs/test_jgfs_vminmon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export NET='gfs'
export RUN='gfs'
export PDATE=${PDATE:-2016030206}

export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
export job=gfs_vminmon.${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
export envir=para
export Z=${Z:-gz}
me=`hostname | cut -c1`
me=$(hostname | cut -c1)
export DATAROOT=${DATAROOT:-/gpfs/${me}d2/emc/da/noscrub/Edward.Safford/test_data}
export COMROOT=${COMROOT:-/ptmpp1/$LOGNAME/com}

Expand Down
4 changes: 2 additions & 2 deletions driver/gfs/test_jgfs_vminmon_cray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export PDATE=${PDATE:-2016030800}
#############################################################
# Specify whether the run is production or development
#############################################################
export PDY=`echo $PDATE | cut -c1-8`
export cyc=`echo $PDATE | cut -c9-10`
export PDY=$(echo $PDATE | cut -c1-8)
export cyc=$(echo $PDATE | cut -c9-10)
export job=gfs_vminmon.${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
Expand Down
6 changes: 3 additions & 3 deletions driver/product/change_gfs_downstream_date.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set -x
# export cyc=12
# export cyc=18
export fhr=012
export dir=` pwd `
export PDY=`date -u +%Y%m%d`
export PDY1=`expr $PDY - 1`
export dir=$( pwd )
export PDY=$(date -u +%Y%m%d)
export PDY1=$(expr $PDY - 1)

export olddate=20200712
export newdate=20200922
Expand Down
6 changes: 3 additions & 3 deletions driver/product/change_gfs_downstream_envir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set -x
# export cyc=12
# export cyc=18
export fhr=012
export dir=` pwd `
export PDY=`date -u +%Y%m%d`
export PDY1=`expr $PDY - 1`
export dir=$( pwd )
export PDY=$(date -u +%Y%m%d)
export PDY1=$(expr $PDY - 1)

export olddate=20200106
export newdate=20200712
Expand Down
4 changes: 2 additions & 2 deletions driver/product/run_JGDAS_ATMOS_GEMPAK_META_NCDC_dell.sh_00
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=$(date -u +%Y%m%d)
export PDY=20200922

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=00
export cycle=t${cyc}z
Expand Down
4 changes: 2 additions & 2 deletions driver/product/run_JGDAS_ATMOS_GEMPAK_META_NCDC_dell.sh_06
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=$(date -u +%Y%m%d)
export PDY=20200922

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=06
export cycle=t${cyc}z
Expand Down
4 changes: 2 additions & 2 deletions driver/product/run_JGDAS_ATMOS_GEMPAK_META_NCDC_dell.sh_12
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=$(date -u +%Y%m%d)
export PDY=20200922

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=12
export cycle=t${cyc}z
Expand Down
4 changes: 2 additions & 2 deletions driver/product/run_JGDAS_ATMOS_GEMPAK_META_NCDC_dell.sh_18
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=$(date -u +%Y%m%d)
export PDY=20200922

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=18
export cycle=t${cyc}z
Expand Down
4 changes: 2 additions & 2 deletions driver/product/run_JGDAS_ATMOS_GEMPAK_dell.sh_00
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=$(date -u +%Y%m%d)
export PDY=20200922

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=00
export cycle=t${cyc}z
Expand Down
4 changes: 2 additions & 2 deletions driver/product/run_JGDAS_ATMOS_GEMPAK_dell.sh_06
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=$(date -u +%Y%m%d)
export PDY=20200922

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=06
export cycle=t${cyc}z
Expand Down
4 changes: 2 additions & 2 deletions driver/product/run_JGDAS_ATMOS_GEMPAK_dell.sh_12
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

export KMP_AFFINITY=disabled

export PDY=`date -u +%Y%m%d`
export PDY=$(date -u +%Y%m%d)
export PDY=20200922

export PDY1=`expr $PDY - 1`
export PDY1=$(expr $PDY - 1)

export cyc=12
export cycle=t${cyc}z
Expand Down
Loading

0 comments on commit 51910b3

Please sign in to comment.