#!/bin/sh #] #] ********************* #] $ bash "$d_bin"'0_form bash run.sh.txt' # www.BillHowell.ca initial # view in text editor, using constant-width font (eg courier), tabWidth = 3 #24************************24 #24************************24 # List of operators, generated with : # $ grep "^#]" "$d_bin"'0_form bash run.sh.txt' | sed "s/^#\]/ /" >"$d_bin"'0_form bash run.sh.txt'' TblOfCont.txt' # OR - for synchronized [TblOfCont=Run, Start] files: # run files: to [generate, check ==] * [rsync, start], use the cmdLin : # $ dRsync="$d_bin"'rsync/'; pRsync="$dRsync"'rsync directories.sh'; pRsyncRun="$dRsync"'rsync directories run.sh'; pRsyncTop="$pRsyncRun"'.top.txt'; pRsyncTmp="$d_temp"'rsyncTmp.txt'; cp "$pRsyncTop" "$pRsyncRun"; grep "^#] " "$pRsync" | sed "s|^#] |#\t|" >>"$pRsyncRun"; grep ' #()' "$pRsyncRun" | grep --invert-match 'rsync_no_excludes\|rsync_with_excludes' | sed 's|\t\t#()|#()|;s|\t| |' >"$pRsyncTmp"; dStart="$d_bin"'starter/'; pStart="$dStart"'start_webLocal hacked.sh'; pStartRun="$dStart"'start_webLocal hacked run.sh'; pStartTop="$dStart"'start_webLocal hacked.sh.top.txt'; pStartTmp="$d_temp"'startTmp.txt'; cp "$pStartTop" "$pStartRun"; grep "^#]" "$pStart" | sed 's/^#\] /# /' >>"$pStartRun"; grep ' #()' "$pStartRun" | grep --invert-match 'base\|fileops_stuff\|rsync_directories\|webLocal_stuff' | sed 's|start_||;s|\t| |' >"$pStartTmp"; diff "$pStartTmp" "$pRsyncTmp" --suppress-common-lines # (make sure that no cmds uncommented before executing cmdLin) # run: simply uncomment lines in run file(s) # find active run functions: # $ grep "^[ ]\+[A-Za-z0-9_]\+[ ]\+.*#" "$d_bin"'0_form bash run.sh.txt' # OR $ grep "^[ ]\+[A-Za-z0-9_]\+[ ]\+" "$d_bin"'0_form bash run.sh.txt' # note use of tab key in grep search expression # func defs come BEFORE 'titleLine capture for TableOfContents: # uncomment (delete '#]') of titleLine to run choice, BUT put back later! # +--+ #08********08 # Setup source "$d_bin"'standard header.sh' #08********08 # code #] dum_test #() just to see if function is added to REPL dum_test() { echo 'This is a dumb test' } #08********08 # Procedures - To run : #08********08 # run - select one of options # $ bash "$d_bin"'0_form bash run.sh.txt' # enddoc