#] #] ********************* #] $ "$d_SysMaint"'Linux/variable assignment from expression.txt' - ??? # www.BillHowell.ca 30May2018 initial # view in text editor, using constant-width font (eg courier), tabWidth = 3 #48************************************************48 #24************************24 # Table of Contents, generate with : # $ grep "^#]" "$d_SysMaint"'Linux/variable assignment from expression.txt' | sed "s/^#\]/ /" # #08********08 #] ??Jul2022 #08********08 #] ??Jul2022 #08********08 #] ??Jul2022 #08********08 #] ??Jul2022 #08********08 #] ??Jul2022 #08********08 #] ??Jul2022 08********08 #] 10Jul2022 file read loops - eval to expand variables!! see "$d_bin""fileops.sh" # pthOptrNamL_pthNdfL_argOrderNum() # { # pthOptrNamL="$1" # pthNdfL="$2" #] while read -u 9 optrNam; do #] while read -u 8 pthNdf; do #] # echo "pthNdf= $pthNdf" #] evalStr="echo ""$pthNdf" #] pthNdfFull=$( eval "$evalStr" ) #] # echo "pthNdfFull= $pthNdfFull" #] pth_optrNam_getArgOrderNum_dout "$pthNdfFull" "$optrNam" #] done 8< "$pthNdfL" #] done 9< "$pthOptrNamL" # } 08********08 #] 29Jul2019 from "/media/bill/SWAPPER/bin/SSH/sftp logon lists & stats.sh" #] #] while read -u 9 z_hackers_IPad; do #] hackers_IPad_esc=$( echo "$z_hackers_IPad" | sed 's/@/\\@/g;s/\./\\\./g' ) #] counter=$( grep -c "$hackers_IPad_esc" "$p_hackAcc_temp" ) #] echo "$counter""\t""hackers_IPad_esc" >>"$p_countIP_temp" #] done 9<"$p_hackers_IPad" 08********08 #] 30May2018 Enclose expression with =$() - as used in previous bash scripts #] Enclose expression with =$() #] example : f_string=$( find "$d_tests" -maxdepth 1 -name "strings_alltest $datet*" ) # $ bash "$d_SysMaint"'Linux/variable assignment from expression.txt' # enddoc