#] #] ********************* #] "$d_bin"'webLocal/0_webLocal notes.txt' - detailed [concept, comment, note]s for webUpdates (not uploads) # www.BillHowell.ca 01Sep2023 initial, previous notes in QNial, etc ("see also" below Setup) # used to be : "$d_bin"'webSite update notes.txt' - bash-related webSite maintenance & tracking www.BillHowell.ca 15May2020 initial "$d_SysMaint"'webSite/0_website bash notes.txt' # view in text editor, using constant-width font (eg courier), tabWidth = 3 28Aug2024 The step-by-step process MUST BE ROBUST no short-cuts in defined paths!!! can short-cut when re-learn (again & again) the process, and as it improves links for webSite up[load, grade]s: see "$d_bin"'webSite.link.txt' #48************************************************48 #24************************24 # Table of Contents, generate with : # $ grep "^#]" "$d_bin"'webLocal/0_webLocal notes.txt' | sed "s/^#\]/ /" >"$d_bin"'webLocal/0_webLocal notes.txt'' TblOfCont.txt' # ***************************** #24************************24 #] +-----+ #] ToDos active : 14Sep2023 pOvrClassL_get_pClassL pOvrClassL pHtmlClassAll_L - generate a pList of all classes 16Sep2023 must also trap [no-tab, empty] strP in pHum_sed_pCde? ...later... don't think affects the current situation (no empty pCde), but may make code more bullet-proof in general 23Sep2023 probably deleted, must get from backup : /home/bill/web/eir3.gif /home/bill/web/../eir_subscribe_button.gif /home/bill/web/eirtoc/2000/eirtoc_2742.html 22Oct2023 need script to clean up pLnkBmkL.txt 23Feb2024 10:53$ bash "$d_bin"'webSite update local.sh' extract webPages from htmlL: they have strTst /home/bill/web/bin/fileops.sh: line 1363: warning: command substitution: ignored null byte in input /home/bill/web/bin/fileops.sh: line 1363: warning: command substitution: ignored null byte in input >> must fix two above errors (later) >> Weird, why are [foot, head]er files updated??? 27Feb2024 [SAFIRE, Aureon] webPages need work... 27Feb2024 Grossberg - pMenuTop[status, copyright] - add section update pMenuTop[Grossberg, status, copyright] 27Feb2024 'pGoodL_pFailL_bandAid TmpFail.txt' - empty, so it's not working 28Aug2024 pinn_archiveLocal not working : changes date of original file!?? 28Aug2024 pWebNo_L.txt 24 files, have to check later!! 09May2025 binary file matches: add to pHtmExc769='pHtmExcL dirs.txt' later - maybe fix html files? grep: /home/bill/web/References/Climate/HTML Quick List - HTML Code Tutorial.html: binary file matches 15May2025 create a makefile for "$d_bin"'webLocal/webLocal run.sh' 25Jun2025 *.Htm[Web, Nwp]L.html: split [external, internal] links NON-*.Htm[Web, Nwp]L.html: process separately (low priority all the time...) 21Jan2026 one-by-one elimination of problematic pHtmNwpWebL.txt what is the problem: [bash coding, links in files sedChrBad, ???]? #] +-----+ #] ToDos old : see also "Old ToDos" at bottom of this file #] +-----+ 48************************************************48 #08********08 #] ??Jan2026 #08********08 #] ??Jan2026 #08********08 #] ??Jan2026 #08********08 #] 24Jan2026 [run, check] povrStrPL_pStrPL_replace_test (last used 21Dec2025) #] pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU_test (20Jan2026 case 10 only) see "$d_bin"'0_test/fileops/0_fileops test notes.txt' #08********08 #] 24Jan2026 processWww_fix: convert all http[s]://www.BillHowell.ca -> /home/bill/web, from >= 10Dec2025 initial function code, tests too? "$d_bin"'webLocal/0_test/webLocal library tests.sh' NYET! old, nothing there: +-----+ 19Jan2026 pinn_Strt_Endd_get_pStrEncl() create test 19Jan2026 [dir, pth, sym]Nam changes: pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU_[sub, test] 03Jan2026 junk povrL_povrStrPL_get_povrStrPLtest -> use dOrig_getPovrStrPL_dTest 02Jan2026 povrStrPL_pStrPL_replace(): ideas from hand-notes 01Jan2026 povrStrPL_pStrPLman_replace_sub, rpl Permission denied 31Dec2025 povrStrPL_pStrPL_replace_test fix 27Dec2025 povrStrPL_pStrPL_replace_test fixup 22Dec2025 cleanup anachronistic _pDif funcs (now is pRes_get_pDif) 13Dec2025 povrL_pStrPL_replaceChrCde_test no longer working!!! +-----+ pWebPag_sedStrt_get_pLnkL_sub_test #(sedStrt pWebPag) extract lnkL with [start, end] code # 09May2025 initial but there is in "$d_bin"'0_test/fileops/fileops test.sh': # [pPthStrPL, pStrtEnddP] combination: StrP = str[start, end], to get non-inclusive str # pinn_Strt_Endd_get_pStrEncl_test #() don't run directly # pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU_test #() associate [pinn, strOld] + produce strL # povrStrPL_pStrPL_replace_test #() replace strs in povrs (manual New str) find my http[s]:// tests? -> right now povrStrPL_pStrPL_replace_test "$d_bin"'0_test/fileops/povrL_pStrPL_replace/1_pLog povrL_pStrPL_replace.txt function: povrL_pStrPL_replace, start 251221 13h07m33s >> fairly recent, but I changed the functions so repeat test! #08********08 #] 23Jan2026 pLnkLocNoHtp_catSort_pLnkLoc, pLnkLocL_get_pLnkGodL_pLnkBadL pLnkLocNoHtp_catSort_pLnkLoc: I made BIG improvements!! >> still have some https:// : haven't figured out how they got in +-----+ https://books.google.com/books?id=8vPGDwAAQBAJ&printsec=frontcover&vq=corrective https://covid19-projections.com/ https://en.wikipedia.org/wiki/Consciousness https://en.wikipedia.org/wiki/Electromagnetic_theories_of_consciousness https://en.wikipedia.org/wiki/Integrated_information_theory https://en.wikipedia.org/wiki/Models_of_consciousness https://en.wikipedia.org/wiki/Sentience https://www.forbes.com/sites/ericmack/2020/03/16/see-how-coronavirus-compares-to-other-pandemics-through-history/ +-----+ pLnkLocL_get_pLnkGodL_pLnkBadL: OK +-----+ old code # pLnkVerifyL_get_pLnkImgL #() generate pLnkImgL of links to images # pLnkTypL_get_pLocL_pClosL_pOpnL #() all IntBmks split to [good, bad] # processWebSite_find_endd #() end Howell's d_web stuff local pLnkBilHtp="$d_temp"'pLnkBilHtp.txt' local pLnkBilHts="$d_temp"'pLnkBilHts.txt' # nLnkVerify=$( grep --count "^" "$pLnkVerifyL" ); becho "nLnkVerify= $nLnkVerify" #08********08 #] 23Jan2026 pLnkBmkPthL_pHtpBilL_pHtsBilL_appendSort_pLocL() +-----+ old code # pLnkTypL_get_pLocL_pClosL_pOpnL #() split LnkTypL to [local, mirClos, HtpBil] # PthBmk = base pth of link, doesn't include #.* # 25Feb2024 initial # 28Aug2024 pLnkInt -> sort [pRoot, pBmk] lists |*| # 28Aug2024 does -f check even work with internal link? how to test? # 30Aug2024 complete revamp with better approach to bmk [good, fail] test # 23Jan2026 make generic for targted types, to accumulate pthBasL for [good, bad] splits pLnkTypL_get_pLocL_pClosL_pOpnL() { funcStart "$d_webWork" 'pLnkTypL_get_pLocL_pClosL_pOpnL' pLnkTypL="$1" if [ -f "$pLnkTypLGodTmp" ]; then rm "$pLnkTypLGodTmp" ; fi if [ -f "$pLnkTypLBakTmp" ]; then rm "$pLnkTypLBadTmp" ; fi # check each fNam to see if in "$pLnkIntPthGod" # 09May2025 this does NOT yet confirm is bmk is valid in fnam (maybe do this coding later) while IFS='' read -u 072 LnkTyp; do fnam072=$( echo "$LnkTyp" | sed 's|#.*||' ) if [[ -f "$fnam072" || -d "$fnam072" ]]; then echo "$LnkTyp" >>"$pLnkTypLGodTmp" else # fNam base link no good, can't be a valid Bmk echo "$LnkTyp" >>"$pLnkTypLBadTmp" fi done 072<"$pLnkTypL" sort -u "$pLnkTypLGodTmp" >"$pLnkTypLGod" sort -u "$pLnkTypLBadTmp" >"$pLnkTypLBad" nLnkBmkGod=$( wc -l "$pLnkTypLGod" | sed 's|\([0-9]*\) .*|\1|' ) nLnkBmkBad=$( wc -l "$pLnkTypLBad" | sed 's|\([0-9]*\) .*|\1|' ) becho "nLnkIntBmkGod = $nLnkBmkGod" becho "nLnkIntBmkBad = $nLnkBmkBad" funcEnder "$d_webWork" 'pLnkTypL_get_pLocL_pClosL_pOpnL' } # +-----+ # extra stuff, some not in "$d_bin"'webLocal/webLocal library.sh' # Handy geany regxpr search-replace commands while working # see bottom of "$d_bin"'webSite update notes.txt' # create "$d_webWork"'pStrPAll_L change.txt' from "$d_webWork"'pLnkBad.txt' # check "$d_webWork"'pStrPAll_L change.txt' for non-tabbed lines # [add, replace *[class for "home" : # bookmarks search-replace # fix TblOfContents : # MenuTop geany regexpr search-replace : # add p_log to each fileops.sh function except those that iterate many times : # (*) see "Handy geany regxpr search-replace commands while working" # in "$d_bin"'webSite update notes.txt' - LOCAL d_web update, notes # $ bash "$d_bin"'webLocal/webLocal run.sh' # +--+ # preps list for pWebPageL_pStrP_replace : #echo 'run: cp pStrPAll_L template.txt pStrPAll_L change.txt' #cp "$d_webWork"'pStrPAll_L template.txt' "$d_webWork"'pStrPAll_L change.txt' # manual copy-paste pLnkFail.txt' -> pStrPAll_L change.txt (ignore pLnkBad.txt for now) # edit 'pStrPAll_L change.txt' # geany regexpr search : ^(.*)$ replace : "\1"\t"\1" (only one-at-a-time??) # fix replace string - look at [dir, fil s # iterate : #pWebPageL_pStrP_replace # (bol_backup strOld strNew) #webSite_get_links # 22Oct2023 took 06m06s to run # 22Oct2023 terminal output : #sedRvrs = "=FERH ; nsedRvrsAll = 8618 #sedRvrs = '=FERH ; nsedRvrsAll = 32 #sedRvrs = "=ferh ; nsedRvrsAll = 14403 #sedRvrs = '=ferh ; nsedRvrsAll = 1 #sedRvrs = "=CRS ; nsedRvrsAll = 154 #sedRvrs = '=CRS ; nsedRvrsAll = 0 #sedRvrs = "=crs ; nsedRvrsAll = 472 #sedRvrs = '=crs ; nsedRvrsAll = 27 #webSite_check_internalLinks # (no args) check if-valid internal links # check pLnk[Ext, Fail, Int .txt but NOT (for now until I clean it up) pLnkBad.txt # pLnkExt.txt 334kb 3,622 lines 26Oct2023 # pLnkFail.txt 408b 9 lines # pLnkInt.txt 144kb 1,147 lines # do preps for pWebPageL_pStrP_replace # +-----+ # Manually edit AFTER [get, change, check *[webPage, link s & iterate # add ALL THREE sets of failures to "$d_webWork"'pStrPAll_L change.txt' # "$d_webWork"'pWebSiteLinkL.txt' # "$d_webWork"'pWebSiteLinkFailL.txt' # "$d_webWork"'pHeader template.txt' # "$d_webWork"'pClassL.txt' # "$d_webWork"'pHtmlPathExclL webPage.txt' # "$d_webWork"'pHtmlPathExclL non-webPage.txt' # "$d_webWork"'pStrPAll_L change.txt' #* create from "$d_webWork"'pLnkBad.txt', start by copy-paste 'pLnkBad.txt' #* check non-tabbed lines : #$ sed s'|\x9|xyZyx|' "$d_webWork"'pStrPAll_L change.txt' | grep --invert-match 'xyZyx' #(*) see "Handy geany regxpr search-replace commands while working" # in "$d_bin"'webSite update notes.txt' - LOCAL d_web update, notes # NOT until system has been working well with experience! # run ONLY when finished pStrP changes & following is empty : # "$d_webWork"'pWebPageL_pStrP_replaceGetBad_logCheck.txt' # pWebPageL_pStrP_replaceGetBad #08********08 #] 21Jan2026 pLnkBmkPthL_get_pLnkBmkPthGodBadL() 18:17 21Jan2026$ bash "$d_bin"'webLocal/webLocal run.sh' function: pLnkBmkPthL_get_pLnkBmkPthGodBadL, start 260121 18h20m15s /home/bill/web/bin/webLocal/webLocal library.sh: line 441: : No such file or directory /home/bill/web/bin/webLocal/webLocal library.sh: line 458: /home/bill/web/webWork/: Is a directory /home/bill/web/bin/webLocal/webLocal library.sh: line 459: /home/bill/web/webWork/: Is a directory wc: /home/bill/web/webWork/: Is a directory wc: /home/bill/web/webWork/: Is a directory nLnkIntBmkGod = 0 nLnkIntBmkBad = 0 +-----+ function: pLnkBmkPthL_get_pLnkBmkPthGodBadL, endd 260121 18h20m15s duration (sec): 0 duration (min): 0.00 >> OOPS!! no workee #08********08 #] 21Jan2026 pLnkVerifyL_get_pLnkGodL_pLnkBadL() 18:17 21Jan2026$ bash "$d_bin"'webLocal/webLocal run.sh' function: pLnkVerifyL_get_pLnkGodL_pLnkBadL, start 260121 18h17m58s /home/bill/web/bin/webLocal/webLocal library.sh: line 407: pinn_archiveLocalRm: command not found /home/bill/web/bin/webLocal/webLocal library.sh: line 408: pinn_archiveLocalRm: command not found nLnkGod = 1050 nLnkBad = 237 +-----+ function: pLnkVerifyL_get_pLnkGodL_pLnkBadL, endd 260121 18h17m58s duration (sec): 0 duration (min): 0.00 >> Also seems to work. detailed check later when all works: processWebSite_find() #08********08 #] 21Jan2026 run pLnkTypAllSortUL_get_pLnkTypLL() Had to modify too run - filter out problem files 18:11 21Jan2026$ bash "$d_bin"'webLocal/webLocal run.sh' function: pLnkTypAllSortUL_get_pLnkTypLL, start 260121 18h11m38s nLnkBmkPur= 5593 nLnkBmkPth= 161 nLnkEmail_= 0 nLnkExtCls= 224 nLnkExtOpn= 70 nLnkTypAll= 0 nLnkJunker= 116 nLnkLocal_= 1147 nLnkMailTo= 5 nLnkMirOpn= 140 nLnkMirCls= 0 nLnkVerify= 1287 ________ nLnkTotal_= 8743 +-----+ function: pLnkTypAllSortUL_get_pLnkTypLL, endd 260121 18h11m38s duration (sec): 0 duration (min): 0.00 >> Seems to work. detailed check later when all works: processWebSite_find() #08********08 #] 21Jan2026 try again: pHtmTypAllL_pLnkPLHrfImg_get_pHtmLnkPL_pLnkTypAllL_pLnkTypAllSortUL in "$d_bin"'webLocal/webLocal run.sh' 16:21 21Jan2026$ bash "$d_bin"'webLocal/webLocal run.sh' function: pHtmTypAllL_pLnkPLHrfImg_get_pHtmLnkPL_pLnkTypAllL_pLnkTypAllSortUL, start 260121 16h32m06s starting sort 260121 16h32m46s +-----+ function: pHtmTypAllL_pLnkPLHrfImg_get_pHtmLnkPL_pLnkTypAllL_pLnkTypAllSortUL, endd 260121 16h32m46s duration (sec): 40 duration (min): 0.66 >> WORKS!!! (finally), looks [fast, good]? line pinnL pPinQStr pStrEncl pStrEnclSortU 36786 "$d_webWork"'pHtmLnkPLNlkNwpWeb.txt' /home/bill/web/webWork/pMenuTopStatus.HtmWeb.html:Q:/home/bill/web/Personal/241115 IDtheft/Howell IDtheft.html 36786 "$d_webWork"'pLnkNlkNwpWebL.txt' /home/bill/web/Personal/241115 IDtheft/Howell IDtheft.html 7456 "$d_webWork"'pLnkNlkNwpWebSortUL.txt' #Zoroastrian +-----+ change pths back to original change: pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU "$pHtmNlkNwpWebL" "$pLnkPLHrfImg" "$pHtmLnkPLNlkNwpWeb" "$pLnkNlkNwpWebL" "$pLnkNlkNwpWebSortUL" back to: pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU "$pHtmTypAllL" "$pLnkPLHrfImg" "$pHtmLnkPL" "$pLnkTypAllL" "$pStrEnclSortU" >> NYET! crapped out must filter pthBads before run, so put pths back, try to [fix, rm] problems much later #08********08 #] 21Jan2026 run dWeb_get_pHtmTypLL after upgrading "$d_bin"'standard pExclHtmTyp.txt' change : find "$d_web" -type f -name "*.html" | grep --invert-match "$pExclHtmTyp" | grep --file="$d_webWork"'pInclTypAllL.txt' -i | sort -u >"$pHtmTypAllL" to: find "$d_web" -type f -name "*.html" | grep --invert-match --file="$pExclHtmTyp" | grep --file="$d_webWork"'pInclTypAllL.txt' -i | sort -u >"$pHtmTypAllL" >> dWeb_get_pHtmTypLL works after setting up pExclHtmTyp (lots of problems). #08********08 #] 20Jan2026 pHtmTypAllL_pLnkPLHrfImg_get_pHtmLnkPL_pLnkTypAllL_pLnkTypAllSortUL() AFTER revamping fileops stuff. This isn't terminating, must have a loop? no error msg pHtmLnkPL.txt, last line 4827 @17:56 : /home/bill/web/Cool emails/141214 Subject: APEGA lunch discussion - fractional calculus.HtmEml.html:Q:mailto: earlier attempt also didn't terminate, last line 4910 /home/bill/web/Cool emails/150513 Subject: Fwd: ?do we need rapid population reduction?.HtmEml.html:Q:mailto: tail end are all "mailto:" perhaps exclude "/Cool emails/"? these have binary code for attachments change : pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU "$pHtmTypAllL" "$pLnkPLHrfImg" "$pHtmLnkPL" "$pLnkTypAllL" "$pLnkTypAllSortUL" to: pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU "$pHtmNlkNwpWebL.txt" "$pLnkPLHrfImg" "$pHtmLnkPL" "$pLnkTypAllL" "$pLnkTypAllSortUL" I think "sort -u" is taking a long time, but essential? There might also be a problem with other files, not just mail? Retry before finish, just NlkNwpWEB: last file listed @18:21 (before this test started!), when I looked @19:46 /home/bill/web/Neural nets/Schmidhuber/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.HtmWeb.html:Q:/home/bill/web/webWork/pMenuTopHelp.html#neural >> I had excluded a bunch of files months ago, maybe had to add to excludes list? /home/bill/web/webWork/z_Archive/pExcludeL pHtmTypLL.txt +-----+ (copy) /0_test/ /Conference guides/ /Electric Universe/References/Randi Foundation 2008-2011 /Forms/ /Isabelle2023/contrib/ /Isabelle2023/doc/ /Isabelle2023/lib/ /Isabelle2023/src/ /OPM/OPM/ /Qnial/Manuals/ /Qnial/Qnial_bag/ /References/Niroma/ /References/Weart 2003 - The Discovery of Global Warming/ /Schmidhuber/ /Solar system/Cdn Solar Forecasting/ /Sudbury Neutrino Observatory (SNO)/ /System_maintenance/ /Top 75 Immunotherapy startups_files/ /Yoonsuck Choe - conf program book/ /z_Archive/ /z_Old/ /z_history/ /z_historic/ +-----+ >> because a prepared list of.Htm[Nlk, Nwp, Web] is used, should be easy to check. maybe just [Forms, Schmidhuber]? I used most of above list in "$d_bin"'standard pExclHtmTyp.txt' except I removed [/0_test/, /Forms/] pHtmLnkPLNlkNwpWeb.txt last update @19:01:20 : /home/bill/web/Neural nets/Pribram 1993 Rethinking neural networks, Quantum fields and biological data, TableOfContents.HtmWeb.html:Q:/home/bill/web/webWork/pMenuTopHelp.html#neural #08********08 #] 17Jan2026 pHtmTypAllL_pLnkPLHrfImg_get_pHtmLnkPL_pLnkTypAllL_pLnkTypAllSortUL() 17:38 17Jan2026$ bash "$d_bin"'webLocal/webLocal run.sh' function: processWebSite_find, start 260117 17h41m04s grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.HtmWeb.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).HtmWeb.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.HtmWeb.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.HtmWeb.html: binary file matches grep: /home/bill/web/System_maintenance/text processors/kwrite test regexpr using IJCNN2019 mass email 181108 v181106.HtmNwp.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.HtmWeb.html: binary file matches +-----+ function: processWebSite_find, endd 260117 17h41m12s duration (sec): 8 duration (min): 0.13 #08********08 #] 16Jan2026 Planning: next steps are in webLocal 01. http://www.BillHowell.ca/ -> /home/bill/web/ create pExcludes, especially directories 02. redo steps to [find, fix] problems: "$d_bin"'webLocal/webLocal run step-by-step.sh' - step-by-step update webLocal [URLlocal, links, etc] 08. class specification search <:class:> 09. Menu comments - BIG job! 10. Announce major progress on site links: all webPages? #08********08 #] 11Dec2025 processWebSite_find(): run one-by-one to check symbols 12:30 11Dec2025$ bash "$d_bin"'webLocal/webLocal run.sh' +-----+ function: pHtmNlkL_pHtmNwpWebL_checkLinkNums, start 251211 12h33m57s /home/bill/web/bin/webLocal/webLocal library.sh: line 493: : No such file or directory /home/bill/web/bin/webLocal/webLocal library.sh: line 494: : No such file or directory grep: : No such file or directory grep: : No such file or directory /home/bill/web/bin/webLocal/webLocal library.sh: line 500: [: : integer expression expected pNlkWwwPL has www links: error! rename files .HtmNlk.html -> .HtmNwp.html /home/bill/web/bin/webLocal/webLocal library.sh: line 506: [: : integer expression expected pNHMWwwPLL has lines with www links (some multiple links/line) pLnkIntOpnL has 226 lines with www links (some multiple links/line) function: pHtmNlkL_pHtmNwpWebL_checkLinkNums, endd 251211 12h33m57s duration (sec): 0 duration (min): 0.00 +-----+ olde code # 11Dec2025 archaic - commented out : # pStrPL_769="$d_webWork"'pStrPAll_L change.txt' # dWebWork_archiveLocal() # pStrP_oldMvDir769="$d_webWork"'pStrP_oldMvDir change.txt' # pStrPAll_L_chg769="$d_webWork"'pStrPAll_L change.txt' #pHtmIntAID769="$d_webWork"'pHtmIntAIDL.txt' #pLnkBadBad_xDun="$d_webWork"'pLnkVerifyPL BadGodP_xDun.txt' # cat "$pHtmNlkL" | tr \\n \\0 | xargs -0 -IFILE grep -i --with-filename --line-number 'http://www.BillHowell.ca/' "FILE" >"$pNlkWwwPL" # cat "$pHtmNwpWebL" | tr \\n \\0 | xargs -0 -IFILE grep -i --with-filename --line-number 'http://www.BillHowell.ca/' "FILE" >"$pNHMWwwPL" #08********08 #] 11Dec2025 cleanup 'webLocal library.sh' etc +-----+ olde code # pWebHoL_rm_1stLin #(pWebHoL) DON'T USE!!rm 1st line path 10Jun2025 old code: use to identify "lost Howell html" files (later...) becho 'extract Howell html files: they have strTst' index__143=1 pinnL_lineIdx_strTst_split_pYes_pNo "$pHtmInc769" "$index__143" "$strTst_769" "$pWebYes769" "$pWebNo_769" "$pWebYesDif769" "$pWebNo_Dif769" #<-- 10Jun2025 new code # end 10Jun2025 new code becho 'split web[Howell[Yes, No], Extern]' # clean up pWeb[Yes, No_] - [too much detail, problematic] pTmp143="$d_temp"'dWeb_get_pHtmWebYesNonL temp.txt' grep --invert-match --file="$pWebYesExc769" -i "$pWebYes769" >"$pTmp143" mv "$pTmp143" "$pWebYes769" grep --invert-match --file="$pWebNo_Exc769" -i "$pWebNo_769" >"$pTmp143" mv "$pTmp143" "$pWebNo_769" becho 'enumerate various types of files' nHtmAll=$( wc -l "$pHtmAll769" | sed 's|\([0-9]*\) .*|\1|' ) nHtmDif=$( wc -l "$pHtmDif769" | sed 's|\([0-9]*\) .*|\1|' ) nHtmInc=$( wc -l "$pHtmInc769" | sed 's|\([0-9]*\) .*|\1|' ) nWebYes=$( wc -l "$pWebYes769" | sed 's|\([0-9]*\) .*|\1|' ) nWebNo_=$( wc -l "$pWebNo_769" | sed 's|\([0-9]*\) .*|\1|' ) nHtmExcDir=$( wc -l "$pHtmExc769" | sed 's|\([0-9]*\) .*|\1|' ) nWebYesDif=$( wc -l "$pWebYesDif769" | sed 's|\([0-9]*\) .*|\1|' ) nWebNo_Dif=$( wc -l "$pWebNo_Dif769" | sed 's|\([0-9]*\) .*|\1|' ) becho "nHtmAll = $nHtmAll" # my html files only - use for link [get, check, etc] becho "nHtmDif = $nHtmDif" becho "nHtmInc = $nHtmInc" becho "nWebYes = $nWebYes" # my webPages only - no use for link [get, check, etc] becho "nWebNo_ = $nWebNo_" becho "nHtmExcDir = $nHtmExcDir" becho "nWebYesDif = $nWebYesDif" becho "nWebNo_Dif = $nWebNo_Dif" t_endd=$(date +"%0e%0b%0Y %0kh%0Mm%0Ss") # date_ddmmmyyyy_hms becho "start $t_start" becho "endd $t_endd" becho '' funcEnder_pLog "$t_startFunc" } #08********08 #] 16Jun2025 find my html files that don't have ".Ho[Nwp, Web].html' $ find "$d_web" -type f -name "*.html" | grep --invert-match "z_Archive\|z_Old" | tr \\n \\0 | xargs -0 -IFILE grep -m 1 '/home/bill/web/' "FILE" | sort -u >"$d_temp"'find-grep d_web.txt' >> outputs only line with d_web... want full pth, not line $ find "$d_web" -type f -name "*.html" | grep --invert-match "z_Archive\|z_Old" | tr \\n \\0 | xargs -0 -IFILE grep -m 1 -H '/home/bill/web/' "FILE" | sort -u >"$d_temp"'find-grep d_web.txt' >> must get rid of match, just path $ find "$d_web" -type f -name "*.html" | grep --invert-match "z_Archive\|z_Old\|0_test" | tr \\n \\0 | xargs -0 -IFILE grep -m 1 -H '/home/bill/web/' "FILE" | sed 's|\.html:.*|.html|' | sort -u >"$d_temp"'find-grep d_web.txt' Now, save output to d_webWork: 11h49m 16Jun25$ find "$d_web" -type f -name "*.html" | grep --invert-match "z_Archive\|z_Old\|0_test" | tr \\n \\0 | xargs -0 -IFILE grep -m 1 -H '/home/bill/web/' "FILE" | sed 's|\.html:.*|.html|' | sort -u >"$d_webWork"'pHtmWebRoot.txt' >> great, 431 files Sublist only those without .Ho[Nwp, Web] 11h54m 16Jun25$ grep --invert-match "HoWeb\|HoNwp" "$d_webWork"'pHtmWebRoot.txt' >"$d_webWork"'pHtmWebRootNoHo[Nwp, Web].txt' >> OK, 96 files, most are conference guides - ignore for now 11h56m 16Jun25$ grep --invert-match "HoWeb\|HoNwp\|\/Conference guides\/" "$d_webWork"'pHtmWebRoot.txt' >"$d_webWork"'pHtmWebRootNoHo[Nwp, Web].txt' >> perfect, 21 files to rename I renamed files, or deleted paths #08********08 #] 13Jun2025 NYET!! fix 1st line of "*.pHo[Nwp, Web].html", lists in pHo[Web, Nwp]L.txt DON'T USE!! I already lost all webPages because of this, not worth it, edit is as edit does pHoWebL_rm_1stLin() { local pHoWeb='' pTmp="$d_temp"'pHoWebL_getPut1stLin_pBadL temp.txt' while read -u 513 pHoWeb; do if [ -f "$pTmp" ]; then rm "$pTmp"; fi exec 512<"$pHoWeb" # read 1st line (has path), then ignore read -u 512 lin1st # simply output rest of file, while read -u 512 line; do echo "$line" >"$pTmp" done close 512 cp -p "$pTmp" "$pHoWeb" done 513< "$pHoWebL769" } #08********08 #] 10Jun2025 "$d_bin"'webLocal/webLocal run.sh': dWeb_get_pHo[Web, Nwp]L dWeb_get_pHoNwpL 17h06m 10Jun25$ bash "$d_bin"'webLocal/webLocal run.sh' >> OK, pHoWebL: 280 old way, 271 new pHoNwpL: 122 old way, 99 new Must go back to earlier todays "misses" with mv see "$d_webWork"'250610 rename html files/pth move errors.txt' +-----+ pHoWebL: MANUALLY put in .pHoWeb prior to .html y mv: cannot stat '/home/bill/web/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html': No such file or directory y mv: cannot stat '/home/bill/web/Bill Howells book [note, review]s/Wilson 1990 Quantum consciousness, Howells review.html': No such file or directory y had already been changed mv: cannot stat '/home/bill/web/Bill Howells videos/Birkeland rotation in galaxy - not dark matter/Birkeland rotation in galaxy - not dark matter.html': No such file or directory y: had already been changed mv: cannot stat '/home/bill/web/Professional/_Resumes, work experience.html': No such file or directory y is HoNwp, not HoWeb mv: cannot stat '/home/bill/web/ProjMajor/Electric Universe/Andrew Halls electric geology [thunderblog, video]s.html': No such file or directory y mv: cannot stat '/home/bill/web/ProjMajor/Electric Universe/Peratt - Auroral phenomena and petroglyphs.html': No such file or directory y mv: cannot stat '/home/bill/web/ProjMajor/Sun pandemics, health/corona virus/Howell - review of Tamny 2021 When politicians panicked.html': No such file or directory y mv: cannot stat '/home/bill/web/ProjMini/Mythology/Freeman 2009 Canadas Stonehenge, Siksika territory.html': No such file or directory oops - chopped path... mv: target 'arent wearing any clothes.HoWeb.html': No such file or directory y mv: cannot stat '/home/bill/web/webOther/Wickson, Steven/900y cycle/Wickson overview.html': No such file or directory >> above require linkFixes +-----+ pHoNwpL: mv: target 'Kaals atomic nucleus model.HoNwp.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html convertBodyLinks.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html str_replaceIn_path.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html update.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- HELP.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- HELP.html convertBodyLinks.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- HELP.html str_replaceIn_path.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- HELP.html update.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- Howell - corona virus.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- Howell - corona virus.html convertBodyLinks.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- Howell - corona virus.html str_replaceIn_path.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- Howell - corona virus.html update.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- _Lies, damned lies, and scientists.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- _Lies, damned lies, and scientists.html convertBodyLinks.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- _Lies, damned lies, and scientists.html str_replaceIn_path.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- _Lies, damned lies, and scientists.html update.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- Menu.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- Menu.html convertBodyLinks.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- page Howell - blog.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- page Howell - blog.html convertBodyLinks.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- page Howell - blog.html str_replaceIn_path.html': No such file or directory mv: cannot stat '/home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- page Howell - blog.html update.html': No such file or directory #08********08 #] 10Jun2025 NYET, leave it: dWeb_get_pHtmWebYesNonL, new code to get: "$pWeb[Yes[, Dif], No_[, _Dif]]769" #(no args) generate [pthL, diff] of p[HtmAll, HtmInc, WebYesNo] +-----+ After that: fix links!! #08********08 #] 10Jun2025 rename ALL my html files so find IDs them fast? *.[HoNwp, HoWeb].html #] HoWeb = my webPage; HoNwp = non-HoWeb "$d_bin"'webLocal/webLocal library.sh' dWeb_get_pHtmWebYesNonL #(no args) generate [pthL, diff] of p[HtmAll, HtmInc, WebYesNo] I moved related file to : 13h15m 10Jun25$ ls -1 '/home/bill/web/webWork/250610 rename html files' 'pth move errors.txt' pWebNo_L.txt 'pWebYesL test1.txt' pWebYesL.txt ~ +-----+ pWebYes769="$d_webWork"'pWebYesL.txt' $ sed "s|\(.*\)\.html$|mv '\1.html'\t'\1.HoWeb.html'|" "$d_webWork"'pWebYesL.txt' >"$d_temp"'pWebYesL.txt' >> later use this for ideas to change links CLOSE all my "$d_webWork"'pWebYesL.txt' files!! "$d_temp"'pWebYesL test1.txt' : mv '/home/bill/web/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html' '/home/bill/web/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.HoWeb.html' $ bash "$d_temp"'pWebYesL test1.txt' >> oops, files had been moved Is the find pulling out html.link.txt? NO!: 12h11m 10Jun25$ find "$d_projMin"'Mythology' -maxdepth 1 -type f -name '*.html' /home/bill/web/ProjMini/Mythology/Cardona - gods are planets, planets are gods (plus Sun).html /home/bill/web/ProjMini/Mythology/Wilson 1990 Quantum consciousness, Howells review.html /home/bill/web/ProjMini/Mythology/Wilson 1977 Cosmic trigger, Howells review.html /home/bill/web/ProjMini/Mythology/Freeman 2009 Canadas Stonehenge, Siksika territory, Howell review.html 12h12m 10Jun25$ bash "$d_temp"'pWebYesL test1.txt' >> OK, worked 12h23m 10Jun25$ bash "$d_temp"'pWebYesL.txt' see "$d_webWork"'250610 rename html files/pth move errors.txt' Many mis-classes (external, not my webpage!) +-----+ pWebNo_769="$d_webWork"'pWebNo_L.txt' 12h36m 10Jun25$ sed "s|\(.*\)\.html$|mv '\1.html'\t'\1.HoNwp.html'|" "$d_webWork"'pWebNo_L.txt' >"$d_temp"'pWebNo_L.txt' >> looks OK 12h39m 10Jun25$ bash "$d_temp"'pWebNo_L.txt' see "$d_webWork"'250610 rename html files/pth move errors.txt' #08********08 #] 20May2025 create [link, webPage]s for "$d_web"'Bill Howells book [note, review]s/' reviews, notes of OTHER people's work, my comments of tertiary importance #08********08 #] 17May2025 list of links test using pinnL_pSedExpL_get_povr() "$d_bin"'fileops notes.txt' #08********08 #] 16May2025 fix strSedChrProblemL_get_strEsc_test() >> works fairly well... #08********08 #] 15May2025 strSedChrProblemL_get_strEsc_test() see p_log="$dStringsTst"'pLog strings test.sh.txt' Implement a "Category theory" approach to tests create a makefile for "$d_bin"'webLocal/webLocal run.sh' +-----+ olde code # 15May2025 # resStd='\"\,\*\.\[\]{}-|' # resClc="doesn't work" # echo 'eval: line 83: syntax error: unexpected end of file' # # testNum=3 # cmd='echo '"'"'",*.[]{}-|'"'"' | sed '"'"'s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|\[|\\[|;s|\]|\\]|;s|\{|\\{]|;s|\}|\\}|'"'"'' # resClc="doesn't work - need to bracket {}" # cmt='sed: -e expression #1, char 71: Invalid preceding regular expression' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=4 # cmd='echo '"'"'",*.[]{}'"'"' | sed '"'"'s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|\[|\\[|;s|\]|\\]|;s|\{]|\\{|;s|\}]|\\}|'"'"'' # resStd='\"\,\*\.\[\]\{}-|' # resClc=$( eval "$cmd" ) # cmt='>> OK' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=5 # cmd='echo '"'"'",*.[]{}-|'"'"' | sed '"'"'s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|\[|\\[|;s|\]|\\]|;s|[{]|\\{|;s|[}]|\\}|'"'"'' # resStd='\"\,\*\.\[\]\{\}-|' # resClc=$( eval "$cmd" ) # cmt='>> OK' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=6 # cmd='echo '"'"'",*.[]{}-|'"'"' | sed '"'"'s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|[*]|[*]|;s|\[|\\[|;s|\]|\\]|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|;s#[|]#[|]#'"'"'' # resStd='\"\,\[*\]\.[][{][}]\-[|]' # resClc=$( eval "$cmd" ) # cmt='>> OK? dunno, before: cmd switched result!! how did I avoid this? do it FIRST!? ;s|\[|\\[|;s|\]|\\]|' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=7 # cmd='echo '"'"',*.[]{}-|'"'"' | sed '"'"'s|\[|\\[|;s|\]|\\]|;s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|;s#[|]#[|]#'"'"'' # resStd='\"\,\*\.\[\][{][}]\-[|]' # resClc=$( eval "$cmd" ) # cmt='>> oops' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=8 # cmd='echo '"'"',*.[]{}-|'"'"' | sed '"'"'s|\[|\\[|;s|\]|\\]|;s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|;s#[|]#[|]#'"'"'' # resStd='\"\,\*\.\[\][{][}]\-[|]' # resClc=$( eval "$cmd" ) # cmt='>> oops' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=9 # cmd='echo '"'"',*.[]{}-|'"'"' | sed '"'"'s|[/]|[/]|;s|\[|\\[|;s|\]|\\]|;s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|;s#[|]#[|]#'"'"'' # resStd='\"\,\*\.\[\][{][}]\-\[|]' # resClc=$( eval "$cmd" ) # cmt='>> oops' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=10 # cmd='echo '"'"'",*.[]{}-|/'"'"' | sed '"'"'s|\/|\\/|;s|\[|\\[|;s|\]|\\]|;s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|;s#[|]#[|]#'"'"'' # resStd='\"\,\*\.\[\][{][}]\-[|]\/' # resClc=$( eval "$cmd" ) # cmt='>> OK' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=11 # cmd='echo '"'"',*.[]{}-|/'"'"' | sed '"'"'s|\/|\\/|;s|\[|\\[|;s|\]|\\]|;s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|;s#[|]#[|]#|#\\|#'"'"'' # resStd='\|\"\,\*\.\[\][{][}]\-|\/' # resClc=$( eval "$cmd" ) # cmt='>> no resClc' # strSedChrProblemL_get_strEsc_test_echoRes # # >>is this version for `| good? dunno, not part of valid path anyways? # # >> what about `{}??? leave it for now... # # # for further tests : # #cmd='echo '"'"',*.[]{}-|/'"'"' | sed '"'"'s|\/|\\/|;s|\[|\\[|;s|\]|\\]|;s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|;s#\|#\\|#' ) # # # # 2nd sed for `' # testNum=12 # cmd='echo ''"'"the Sam's best try"'"'' | sed ''"'"s|\'|\\\'|"'"' # resStd="the Sam[']s best try" # resClc=$( eval "$cmd" ) # cmt='>> OK' # strSedChrProblemL_get_strEsc_test_echoRes # # # testNum=13 # cmd='echo '"the Sam's best try"' | sed ''"'"s|[']|[']|"'"' # resStd="the Sam\'s best try" # resClc=$( eval "$cmd" ) # cmt='>> no resClc' # strSedChrProblemL_get_strEsc_test_echoRes # # testNum=14 # cmd='echo '"the Sam[']s best try"' | sed ''"'"s|[']|[']|"'"' # resStd="the Sam[']s best try" # resClc=$( eval "$cmd" ) # cmt='>> no resClc' # strSedChrProblemL_get_strEsc_test_echoRes # # # for future tests : # # cmd=$( echo "the Sam's best try" | sed "s|[']|[']|" ) # example reslt using ??? # 23h20m 14May25$ bash "$d_bin"'0_test/fileops/fileops test run.sh' # sedBegFwd431= HREF=" # sedEndFwd431= "> # \| HREF=\" # \| # >> oops, doesn't work, remove `| from strInn_get_strSedChrProblemEsc #08********08 #] 14May2025 fix pinn_sedExpr_get_padd_sub() don't convert `' to `" - why? sed 's|||' "$pinn431" >"$pinnQot431"+ cat "$pinn431" | tr \x27 \x22 >"$pinnQot431" cat "$pinn431" | tr "'" '"' >"$pinnQot431" >> nyet!!: OK for pinnQot431="$d_temp"'pinn_sedExpr_get_padd_sub pinnQot.txt' Not working for apos? strInn_get_strSedChrProblemEsc() { local strInn="$1" local strInnSedEsc=$( echo "$strInn" | sed 's|\/|\\/|;s|\[|\\[|;s|\]|\\]|;s|\"|\\"|;s|\,|\\,|;s|\.|\\.|;s|\*|\\*|;s|[{]|[{]|;s|[}]|[}]|;s|\-|\\-|' ) strSedChrEsc=$( echo "$strInnSedEsc" | sed "s|[']|[']|" ) echo "$strSedChrEsc" } works for pStrFwdGrp431="$d_temp"'pinn_sedExpr_get_padd_sub grep SedBeg lines.txt' >> how the heck are `' apos getting back into +-----+ olde code # p_logNam='pLog pinn_sedExpr_get_padd_sub_test.txt' # p_log="$dTst$p_logNam" before switching back to reverse searches : while IFS='' read -u 431 liner431; do nSdBeg431=$( echo "$liner431" | grep -io "$sedBeg431" | wc -l ) # echo "$liner431" for (( nItr=0; nItr < $nSdBeg431; nItr++ )); do #qotFwd431=$( echo "$liner431" | sed "s|.*$sedBeg431\"\(.*\)\">.*|\1|I" ) # how about? to avoid revs qotFwd431=$( echo "$liner431" | sed "s|.*$sedBeg431\(^[\x22]\)$sedEnd431.*|\1|I" ) # qotFwd431=$( echo "$liner431" | sed "s|.*$sedBeg431\([^\x5C\x2F\)$sedEnd.*|\1|I" ) # linRev431=$( echo "$liner431" | sed "s|\(.*\)$sedBeg431.*|\1|I" | rev ) # qotBak431=$( echo "$qotFwd431" | rev | sed "s|.*>\"\(.*\)|\1|" | rev ) echo "$qotFwd431" >>"$pFwdAdd431" # echo "$qotBak431" >>"$pFwdAdd431" # reset "$pliner431" for the next 'for' # liner431=$( echo "$liner431" | sed "s|\(.*\)$sedBeg431.*|\1|" ) done done 431<"$pFwdGrp431" change # captures multiple sedStrt per line while IFS='' read -u 431 linFwd431; do # ignore linFwds without sedBegFwd431 nSdBeg431=$( echo "$linFwd431" | grep -io "$sedBegFwdEsc431" | wc -l ) # echo "$nSdBeg431" # echo "$linFwd431" for (( nItr=0; nItr < $nSdBeg431; nItr++ )); do bolsedBegFwd=$( echo "$linFwd431" | grep "$sedBegFwdEsc431" ) if ! [ "$bolsedBegFwd" == '' ]; then linRev431=$( echo "$linFwd431" | sed "s|.*$sedBegFwdEsc431\(.*\)|\1|I" | rev ) quoter431=$( echo "$linRev431" | sed "s|\(.*\)$sedEndRevEsc431.*|\1|" | rev ) linFwd431=$( echo "$linRev431" | sed "s|.*$sedEndRevEsc431\(.*\)|\1|" | rev ) echo "$quoter431" >>"$pStrFwdAdd431" fi done done 431<"$pStrFwdGrp431" to # captures multiple sedStrt per line while IFS='' read -u 431 linFwd431; do # ignore linFwds without sedBegFwd431 nSdBeg431=$( echo "$linFwd431" | grep -io "$sedBegFwdEsc431" | wc -l ) # echo "$nSdBeg431" # echo "$linFwd431" for (( nItr=0; nItr < $nSdBeg431; nItr++ )); do bolsedBegFwd=$( echo "$linFwd431" | grep "$sedBegFwdEsc431" ) if ! [ "$bolsedBegFwd" == '' ]; then linRev431=$( echo "$linFwd431" | sed "s|.*$sedBegFwdEsc431\(.*\)|\1|I" | rev ) quoter431=$( echo "$linRev431" | sed "s|\(.*\)$sedEndRevEsc431.*|\1|" | rev ) linFwd431=$( echo "$linRev431" | sed "s|.*$sedEndRevEsc431\(.*\)|\1|" | rev ) echo "$quoter431" >>"$pStrFwdAdd431" fi done done 431<"$pStrFwdGrp431" #08********08 #] 12May2025 revamp pinn[L]_sedExpr_get_p[add_sub, ovr]() I need to re-run to make sure it still works : pWebPageL_pStrP_replace "$pHtmInc769" "$pLnkIntPthManfix769" tough day, but the tests worked fairly well just one or two unexpolained errors +-----+ # $ sedBeg=' HREF=' # $ sedRev=$( echo "$SedBeg" | rev ) # $ echo "$sedRev" # $ liner='
  • image p064fig02.11 Medium-Term Memory (MTM) and Long-Term Memory (LTM) equations complement the Additive and Shunting Models of STM. MTM is typically defined by a chemical transmitter that is released from the synaptic knobs of a neuron (Figure 2.03). ' # echo "$liner" # $ linRev=$( echo "$liner" | rev ) # $ echo "$linRev" # $ lNoSed=$( echo "$linRev" | sed 's|$sedRev.*||' ) # $ lNoSed=$( echo "$linFwd" | sed 's|.*$SedBeg|\1|' ) # $ echo "$lNoSed" # $ tester=$( echo "$linRev" | sed 's|grebssorG.*||' ) # $ echo "$tester" # >> this takes the 1st sedRev!! # $ tester=$( echo "$liner" | sed 's|.*Grossberg||' ) # $ chrBeg=$( echo "$linRev" | sed 's|.*\(.\)$sedRev|\1|' ) # $ chrBeg=$( echo "$linRev" | sed 's|.*\(.\)$sedRev.*|\1|' ) # $ chrBeg=$( echo "$linRev" | sed 's|.*\([\x22\x27]\)$sedRev.*|\1|' ) # $ chrBeg=$( echo "$liner" | sed 's|.*$SedBeg\(.\).*|\1|' ) # $ chrBeg=$( echo "$liner" | sed 's|.*$SedBeg||' ) # $ chrBeg=$( echo "$liner" | sed 's|.*Medium-Term||' ) # $ chrBeg=$( echo "$liner" | sed "s|.*$sedBeg||" ) # $ chrBeg=$( echo "$liner" | sed "s|.*$sedBeg\(.\).*|\1|" ) # $ echo "$chrBeg" +-----+ olde code revamp to ignore `# for bookmarks, extract notmal pth later for sedEndd431 in '"' "'"; do grep -i "$sedStrt431" "$line431" | rev >"$plinRevTmp431" sedRev431=$( echo "$sedStrt431" | rev | sed "s|^|$sedEndd431|" ) nSedRv431=$( grep -o "$sedRev431" "$plinRevTmp431" | wc -l ) # uncomment for tests of pinn_sedExpr_get_padd_sub() (too big a file to be useful in production use) # becho "sedRev431= $sedRev431, nSedRv431= $nSedRv431" # captures multiple sedStrt per line? while IFS='' read -u 431 linTmp431; do nSedRv431=$( echo "$linTmp431" | grep -o "$sedRev431" | wc -l ) linTmp431=$( echo "$linTmp431" | sed "s|\(.*\)$sedRev431.*|\1|" ) # can the "for" be removed, as '>"$padd431" # # what is this for??? to reset "$linTmp431" for the next '>"$pFwdAdd431" # # reset "$plinRev431" for the next 'for' # linRev431=$( echo "$linRev431" | sed "s|\(.*\)\$chrBeg431$sedRev431.*|\1|" ) # done # done 431<"$pFwdGrp431" # lNoSed431=$( echo "$linFwd431" | sed 's|.*$sedBeg431\(.*\)|\1|' ) # chrBeg431=$( echo "$linFwd431" | sed "s|.*$sedBeg\(.\).*|\1|" ) # echo "chrBeg431= $chrBeg431" # 12May2025 need to reverse to capture quote? # qotFwd431=$( echo "$linFwd431" | sed "s|.*$sedBeg$chrBeg431\(.*\)$chrBeg431.*|\1|" ) # linRev431=$( echo "$linFwd431" | rev ) grep -i "$sedBeg431" "$pinn431" >"$pFwdGrp431" # captures multiple sedStrt per line while IFS='' read -u 431 linFwd431; do nSdBeg431=$( echo "$linFwd431" | grep -io "$sedBeg431" | wc -l ) linRev431=$( echo "$linFwd431" | rev ) for (( nItr=0; nItr < $nSdBeg431; nItr++ )); do qotFwd431=$( echo "$linFwd431" | sed "s|.*$sedBeg431\"\(.*\)\".*|\1|" ) echo "$qotFwd431" >>"$pFwdAdd431" # reset "$plinFwd431" for the next 'for' linFwd431=$( echo "$linFwd431" | sed "s|\(.*\)\".*|\1|" ) lNoSed431=$( echo "$linRev431" | sed 's|$sedRev431.*|\1|' ) # chrBeg431=$( echo "$linRev431" | sed 's|.*\(.\)$sedRev431.*|\1|' ) # qotFwd431=$( echo "$linRev431" | sed 's|.*$chrBeg431\(.*\)|\1|' | rev ) # echo "$qotFwd431" >>"$pFwdAdd431" # # reset "$plinRev431" for the next 'for' # linRev431=$( echo "$linRev431" | sed "s|\(.*\)\$chrBeg431$sedRev431.*|\1|" ) done done 431<"$pFwdGrp431" lNoSed431=$( echo "$linRev431" | sed 's|$sedRev431.*|\1|I' ) # chrBeg431=$( echo "$linRev431" | sed 's|.*\(.\)$sedRev431.*|\1|I' ) # qotFwd431=$( echo "$linRev431" | sed 's|.*$chrBeg431\(.*\)|\1|' | rev ) # echo "$qotFwd431" >>"$pFwdAdd431" # # reset "$plinRev431" for the next 'for' # linRev431=$( echo "$linRev431" | sed "s|\(.*\)\$chrBeg431$sedRev431.*|\1|I" ) #08********08 #] 11May2025 revamp symbols: pinn[,L]_sedExpr_get_p[add_sub(), ovr()] pLnkAll769 pLnkAllExc769 new pLnkAllRaw769 pLnkAllRaw769 same pLnkAllBad769 pLnkBadAll769 same pLnkBadDif769 pLnkBadDif769 same pLnkBadStd769 pLnkBadStd769 same pLnkExt769 pLnkExtAll769 new pLnkInt769 pLnkIntAll769 new pLnkIntBmk769 pLnkIntBmk769 same pLnkIntPth769 pLnkIntPth769 same nLnkAllExc769 nLnkAllRaw769 nLnkBadAll769 nLnkBadDif769 nLnkBadStd769 nLnkExtAll769 nLnkIntAll769 nLnkIntBmk769 nLnkIntPth769 11:19 confused - time to rest, then yardWork #08********08 #] 10May2025 change links according to pStrP='pLnkIntPthManfix.txt' old func was (still is there) pWebPageL_pStrP_replace #(no args) general str replacement in webPages pWebYesL.txt 280 strP pHtmIncL.txt 430 strP both simply use : pWebPageL_pStrP_replace #(pHtmInc pLnkIntPthManfix) general pStrP replacement in webPages pHtmInc769="$d_webWork"'pHtmIncL.txt' # all internal html files to check for [lnk, bmk, etc]s pLnkIntPthManfix769="$d_webWork"'pLnkIntPthManfix.txt' # pStrP to fix bad links args in func : povrL_pStrP_replace 1 1 "$pHtmInc769" "$pLnkIntPthManfix769" #08********08 #] 10May2025 pAIDBmk - file#BmkL to diff with pLnkIntBmkGod.txt finally - simple way to verify bmks "$d_bin"'webLocal/webLocal library.sh' : pinnL_sedExpr_get_poutExprL '> Wonderful relief, finally... +-----+ olde code # 06May2025 doesn't make sense to me? # # for each pLnkIntPthGod: extract pLnkIntPthGod -> check pth for each Bmk # while IFS='' read -u 075 pth075; do # # first extract Bmks from pLnkIntGod, ?AFTER pLnkIntPth cleaned up manually after earlier func? # grep -i '#' "$pLnkInt769" | sort -u >"$pTmpBmkL073" # # done 075<"$pLnkIntPthGod769" # first extract Bmks from pLnkIntGod, ?AFTER pLnkIntPth cleaned up manually after earlier func? grep -i '#' "$pLnkInt769" | sort -u >"$pTmpBmkL073" # now create pLnkPth - pLnkInts that are Bmks, rm "#.*" from each (non-Bmk links not included) sed 's|#.*||' "$pTmpBmk073" | sort -u >"$pTmpPthL073" # use double-while to extract pLnkIntBmkPth[God, Bad] pTmpPthL075="$d_temp"'pTmpPthL075.txt' pTmpBmkL073="$d_temp"'pTmpBmkL073.txt' pTmpPthBmk075="$d_temp"'pTmpPthBmk075.txt' while IFS='' read -u 076 pTmpPth; do # create list of pTmpPth-based pTmpBmk grep "$pTmpPth" "$pTmpBmkL075" >"$pTmpPthBmk075" # for each bmk, search pth for '>"$pLnkIntBmkGod769" done 075<"$pTmpPthBmk075" done 076<"$pTmpPthL075" #|*| 30Aug2024 pLnkIntBmkL_get_pLnkIntBmkGodBadLL() continue revamp # pLnkIntBmkBad: for corrections to webPages via pStrP # pLnkIntBmkGod: for file counts #08********08 #] 09May2025 retry webLocal_get_links() after successful tests of pWebPag_sedStrt_get_pLnkL_sub #] NUTTS!! stupid symbol rename was problem for 2-3 days!!!! "$pHtmIncL769 -> "$pHtmInc769 11h03m 09May25$ bash "$d_bin"'webLocal/webLocal run.sh' +-----+ webLocal_get_links, 250509 11h03m03s /home/bill/web/bin/webLocal/webLocal library.sh: line 427: : No such file or directory sort-grep start : 250509 11h03m04s sort: cannot read: /home/bill/web/webWork/pLnkAllRaw.txt: No such file or directory sort-grep end : 250509 11h03m04s diff: : No such file or directory /home/bill/web/bin/webLocal/webLocal library.sh: line 473: : No such file or directory wc: invalid zero-length file name nLnkAll = 0 nLnkAllBad = 0 nLnkAllBadDif = 0 nLnkInt = 0 nLnkIntNoBmk = nLnkExt = 0 >> same problem, why does pLnkAllRaw.txt disappear??? take a break - damaged brain check pLnk[Lin, Rev]Tmp577 'pLnkAllRaw archive.txt' 08May2025 09h45m11s is 2.7 Mbytes >> not created since change : sort -u "$pLnkAllRaw769" | grep --invert-match --file="$pWebYesExc769" >"$pLnkAll769" to : grep --invert-match --file="$pWebYesExc769" "$pLnkAllRaw769" | sort -u >"$pLnkAll769" commented out sections below pWebPag_sedStrt_get_pLnkL_sub >> nothing, except all rm files occurred /home/bill/web/bin/webLocal/webLocal library.sh: line 427: : No such file or directory >> its not doing webLocal_get_links pHtmInc769="$d_webWork"'pHtmIncL.txt' >> OK NUTTS!! stupid symbol rename was problem for 2-3 days!!!! change : done 9< "$pHtmIncL769" # 08May2025 was pWebYes769 to: done 9< "$pHtmInc769" # 08May2025 was pWebYes769 11h47m 09May25$ bash "$d_bin"'webLocal/webLocal run.sh' +-----+ webLocal_get_links, 250509 11h48m08s grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html convertBodyLinks.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html convertBodyLinks.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html str_replaceIn_path.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html str_replaceIn_path.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html update.html: binary file matches grep: /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/[test, std, result] files/webSite test- 1872-2020 SP500 index, ratio of opening price to semi-log detrended price.html update.html: binary file matches grep: /home/bill/web/References/Climate/HTML Quick List - HTML Code Tutorial.html: binary file matches grep: /home/bill/web/References/Climate/HTML Quick List - HTML Code Tutorial.html: binary file matches grep: /home/bill/web/References/Neural Nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/References/Neural Nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches sort-grep start : 250509 12h00m20s sort-grep end : 250509 12h00m20s diff: : No such file or directory /home/bill/web/bin/webLocal/webLocal library.sh: line 473: : No such file or directory wc: invalid zero-length file name nLnkAll = 19280 nLnkAllBad = 3915 nLnkAllBadDif = 0 nLnkInt = 10454 nLnkIntNoBmk = nLnkExt = 4826 change: sed 's|\(.*\)#.*|\1|' "$pLnkInt769" | sort -u >"$pLnkIntNoBmk769" to: sed 's|\(.*\)#.*|\1|' "$pLnkInt769" | sort -u >"$pLnkIntPth769" binary file matches: add to pHtmExc769='pHtmExcL dirs.txt' later - maybe fix html files? grep: /home/bill/web/References/Climate/HTML Quick List - HTML Code Tutorial.html: binary file matches moved to z_Archive (no longer useful) /home/bill/web/Qnial/MY_NDFS/webLocal/ #08********08 #] 09May2025 setup tests - simple redefine of d_webWork, may cause problems? # pWebPag_sedStrt_get_pLnkL_sub_test #(sedStrt pWebPag) extract lnkL with [start, end] code # 09May2025 initial pWebPag_sedStrt_get_pLnkL_sub ' HREF=' "$dTest"'home.html' #pWebPag_sedStrt_get_pLnkL_sub ' HREF=' "$dTest"'Grossbergs [core, fun, strange] concepts.html' 10h42m 09May25$ bash "$d_bin"'webLocal/0_test/webLocal library tests.sh' +-----+ pWebPag_sedStrt_get_pLnkL_sub, 250509 10h42m58s >> perfect! "$d_bin"'webLocal/0_test/d_webWork/' : pLnkAllRaw.txt - good listing? pLog pWebPag_sedStrt_get_pLnkL_sub.txt I renamed 'pLnkAllRaw.txt' to 'pLnkAllRaw std home.html.txt' pWebPag_sedStrt_get_pLnkL_sub ' HREF=' "$dTest"'Grossbergs [core, fun, strange] concepts.html' 10h42m 09May25$ bash "$d_bin"'webLocal/0_test/webLocal library tests.sh' +-----+ pWebPag_sedStrt_get_pLnkL_sub, 250509 10h50m16s >> perfect! "$d_bin"'webLocal/0_test/d_webWork/' : pLnkAllRaw.txt - good listing? pLog pWebPag_sedStrt_get_pLnkL_sub.txt I renamed 'pLnkAllRaw.txt' to 'pLnkAllRaw std home.html.txt' WARNING!: I didn't check if multiple HREFs per line are captured! #08********08 #] 09May2025 fix webLocal_get_links() get old working 'pWebPag_sedStrt_get_pLnkL_sub' >> no obvious changes webLocal_get_links() >> NUUTTTSSS!!! while read -u 9 pHtmInc901; do # sedStrt pWebPag pWebPag_sedStrt_get_pLnkL_sub ' HREF=' "$pHtmInc901" pWebPag_sedStrt_get_pLnkL_sub ' href=' "$pHtmInc901" pWebPag_sedStrt_get_pLnkL_sub ' SRC=' "$pHtmInc901" pWebPag_sedStrt_get_pLnkL_sub ' src=' "$pHtmInc901" done 9< "$pHtmIncL769" # 08May2025 was pWebYes769 >> NYET thank goodness: this overwote ALL internal html files!!! by why didn't this over-write? #08********08 #] 08May2025 pWebPag_sedStrt_get_pLnkL #(sedStrt pWebPag) extract lnkL with [start, end] code what does this do with respect to webLocal_get_links? >> fails (see subSection below) ONLY for use by renamed to pWebPag_sedStrt_get_pLnkL_sub() +-----+ +-----+ 10h47m 08May25$ bash "$d_bin"'webLocal/webLocal run.sh' +-----+ pWebPag_sedStrt_get_pLnkL, 250508 10h47m51s grep: : No such file or directory +-----+ webLocal_get_links, 250508 10h47m51s /home/bill/web/bin/webLocal/webLocal library.sh: line 427: : No such file or directory sort-grep start : 250508 10h47m51s sort: cannot read: /home/bill/web/webWork/pLnkAllRaw.txt: No such file or directory sort-grep end : 250508 10h47m51s diff: : No such file or directory /home/bill/web/bin/webLocal/webLocal library.sh: line 473: : No such file or directory wc: invalid zero-length file name nLnkAll = 0 nLnkAllBad = 0 nLnkAllBadDif = 0 nLnkInt = 0 nLnkIntNoBmk = nLnkExt = 0 >> total failure, in contrast to webLocal_get_links() which works #08********08 #] 08May2025 ToDo webSite_get_links #(no args) extract links from webSite webLocal_get_links() added 2 items [nLnkAllBadDif, nLnkInt] : nLnkAll=$( wc -l "$pLnkAll769" | sed 's|\([0-9]*\) .*|\1|' ) nLnkAllBad=$( wc -l "$pLnkAllBad769" | sed 's|\([0-9]*\) .*|\1|' ) nLnkAllBadDif=$( wc -l "$pLnkAllBadDif769" | sed 's|\([0-9]*\) .*|\1|' ) nLnkIntPth=$( wc -l "$pLnkIntPth769" | sed 's|\([0-9]*\) .*|\1|' ) nLnkInt=$( wc -l "$pLnkInt769" | sed 's|\([0-9]*\) .*|\1|' ) nLnkExt=$( wc -l "$pLnkExt769" | sed 's|\([0-9]*\) .*|\1|' ) back to: dWeb_get_pHtmWebYesNonL() keeps all Schidhuber in ??? +-----+ olde code # double-subDir? /home/bill/web/Qnial/MY_NDFS/webLocal/webLocal/ YES! legitimate, but I don't remember whyFor #08********08 #] 07May2025 why doesn't povrL_pStrP_replace work? povrL="$d_webWork"'pHtmAllL.txt' # pHtmIncL.txt completely inadequate! pStrP="$d_bin"'webOnline/clean/p_Href pHref list for sed to fix links.txt' povrL_pStrP_replace 1 1 "$povrL" "$pStrP" +-----+ "$d_web"'My sports & clubs/z_History/natural- CNS/240108 Howell emto Blair%3A [deactivation, Kaal SAM vs QM].html' %3A is mistake!! drop it for now check if other "newDirs" appear in "$d_webWork"'pHtmIncL.txt' not even '' has a list of webPages >> all "newDirs" exist and are correct 'dWeb_get_pHtmWebYesNonL()' I do not seem to be getting complete lists of files via find error in [code, symName, regexpr esc chrs]??? NUTS! \|z_history was still in "$d_bin"'webLocal/webLocal library.sh' : find "$d_web" -type f -name "*.html" | grep --invert-match -i "References\/24Sep2021 Scientific Integrity\,\|\/References\/Schmidhuber \|0_test\|z_Old\|z_Archive" | sort -u >"$pHtmAll769" 'p_Href pHref' double removed : pStrP="$d_bin"'webOnline/clean/p_Href pHref list for sed to fix links.txt' >> rerun : dWeb_get_pHtmWebYesNonL # generate [pthL, diff] of p[HtmAll, HtmInc, WebYesNo] povrL="$d_webWork"'pHtmAllL.txt' # pHtmIncL.txt completely inadequate! pStrP="$d_bin"'webOnline/clean/p_Href list for sed to fix links.txt' povrL_pStrP_replace 1 1 "$povrL" "$pStrP" 18h19m 07May25$ bash "$d_bin"'webLocal/webLocal run.sh' +-----+ dWeb_get_pHtmWebYesNonL, 250507 18h19m19s find all html files diff: : No such file or directory extract Howell html files: they have strTst /home/bill/web/bin/fileops.sh: line 1636: warning: command substitution: ignored null byte in input /home/bill/web/bin/fileops.sh: line 1636: warning: command substitution: ignored null byte in input split web[Howell[Yes, No], Extern] enumerate various types of files nHtmAll = 1305 nHtmDif = 0 nHtmInc = 432 nWebYes = 282 nWebNo_ = 122 nHtmExcDir = 26 nWebYesDif = 87 nWebNo_Dif = 74 start 07May2025 18h19m19s endd 07May2025 18h19m24s povrL_pStrP_replace, 250507 18h19m24s ************************ 250507 18h19m24s "$d_bin"bin logs/povrL_pStrP_replace funcFamily pLog.txt bolChrCd = 1 povr_tmp = /media/bill/ramdisk/povrL_pStrP_replace pOvr1Tmp.txt pOvr2Tmp = /media/bill/ramdisk/povrL_pStrP_replace pOvr2Tmp.txt pStrPtmp = /media/bill/ramdisk/povrL_pStrP_replace pStrPtmp.txt pDiffTmp = /media/bill/ramdisk/povrL_pStrP_replace pDiffTmp.txt povr files processed : 2 : My sports za@z clubszfsznaturalzm@z CNSzfsz My sports za@z clubszfszz_Historyzfsznaturalzm@z CNSzfsz 1 : My sports za@z clubszfsznaturalzm@z CNSzfsz My sports za@z clubszfszz_Historyzfsznaturalzm@z CNSzfsz 3 : My sports za@z clubszfsznaturalzm@z CNSzfsz My sports za@z clubszfszz_Historyzfsznaturalzm@z CNSzfsz 250507 18h20m13s povrL_pStrP_replace error: povr doesnt exist : /home/bill/web/Neural nets/Conference guides/2019 IJCNN Budapest/schedule.html cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Equifax 250208 letter archive 250208 12h42m36s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Equifax 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/GoFundMe 250208 letter archive 250208 12h35m34s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/GoFundMe 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Google 250208 letter archive 250208 12h35m09s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Google 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Microsoft 250208 letter archive 250208 12h34m38s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Microsoft 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Patreon 250208 letter archive 250208 12h29m56s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Patreon 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/PayPal 250208 letter archive 250208 12h33m29s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/PayPal 250208 letter archive.html': Permission denied 1 : webOtherzfszNeil Howellzfsz webOtherzfszHowellzc@z Neilzfsz 1 : webOtherzfszNeil Howellzfsz webOtherzfszHowellzc@z Neilzfsz 1 : webOtherzfszPaul L Vaughanzfsz webOtherzfszVaughanzc@z Paulzfsz 1 : webOtherzfszSteven H Yaskellzfsz webOtherzfszYaskellzc@z Stevenzfsz 1 : webOtherzfszWickson websitezfsz webOtherzfszWicksonzc@z Stevenzfsz 1 : webOtherzfszSteven H Yaskellzfsz webOtherzfszYaskellzc@z Stevenzfsz start: 250507 18h20m13s ender: 250507 18h26m22s #08********08 #] 07May2025 Schmidhuber htmls: binary file matches +-----+ dWeb_get_pHtmWebYesNonL # generate [pthL, diff] of p[HtmAll, HtmInc, WebYesNo] 0_test is excluded here plus in pHtmExcDir769 but were there other "special excludes"? where? I changed "visible excludes" to : find "$d_web" -type f -name "*.html" | grep --invert-match -i "References\/24Sep2021 Scientific Integrity\,\|\/References\/Schmidhuber \|0_test\|z_Old\|z_Archive\|z_history" | sort -u >"$pHtmAll769" 'pLog dWeb_get_pHtmWebYesNonL.txt' : 05May2025 07May2025 07May* nHtmAll = 1240 = 1184 = 1305 nHtmDif = 0 = 0 = 0 nHtmInc = 312 = 309 = 432 nWebYes = 202 = 199 = 282 nWebNo_ = 82 = 82 = 122 nHtmExcDir = 30 = 30 = 26 nWebYesDif = 0 = 4 = 87 - hah! this worked when there was a change! nWebNo_Dif = 32 = 32 = 74 * after including z_History files +-----+ fix webLocal links post dirMove stuff fileops.sh: where is this function??!!! povrL_pStrP_replace #(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) lftp script file: "$d_bin"'webOnline/pLftp script to mv online dirs 250502.txt' I need the companion to this!!! where is it? easy to make from this file 12h08m 07May25$ bash "$d_bin"'webOnline/webOnline library run.sh' : pManClean_get_pCmt_pLftp_pHref "$p_MnCl" "$p_Cmnt" "$p_LoOn" "$p_Lftp" "$p_Href" >> ran very fast, looks good "$d_bin"'webLocal/webLocal run.sh' povrL="$d_webWork"'pHtmIncL.txt' pStrP="$d_bin"'webOnline/clean/p_Href pHref list for sed to fix links.txt' povrL_pStrP_replace 1 1 "$povrL" "$pStrP" >> It ran, but did it work? hand-test some obvious ones using pStrP to chose povrL examples Wickson Grossberg (because it's important) +--+ FAILURES on local dir : /home/bill/web/bin/fileops [nomenclature, docs].html badFil file:///home/bill/web/bin/webSite%20update%20notes.txt badDir file:///home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/ noExist file:///home/bill/web/webWork/fileops%20run%20webSite%20general.sh noExist file:///home/bill/web/webWork/fileops%20run%20commentary.html >> most other links worked select from : pStrP="$d_bin"'webOnline/clean/p_Href pHref list for sed to fix links.txt' web/My sports & clubs/z_History/natural- CNS/240108 Howell emto Blair: [deactivation, Kaal SAM vs QM].html Kaal: Structured Atom Model (SAM) vs Quantum Mechanics (QM) http://www.billhowell.ca/ProjMini/Kaal-%20Structured%20Atom%20Model/Kaal%20Structured%20Atom%20Model%20vs%20Quantum%20Mechanics.html >> failed, as now in "$d_projMaj"'Electric Universe/Kaal SAM nucleus/' >> p_Href: doesn't list it!! ??? why not? '240108 Howell emto Blair: [deactivation, Kaal SAM vs QM].html' >> WRONG first line : /home/bill/web/My sports & clubs/natural- CNS/240108 Howell emto Blair: [deactivation, Kaal SAM vs QM].html this SHOULD have been changed, but it's not in 'pHtmIncL.txt' So I have to use a more general list! pHtmAllL.txt >> BUT also not in : '240108 Howell emto Blair: [deactivation, Kaal SAM vs QM].html' Redid - huge number of changes, I'm lost. My sports & clubs/z_History/natural- CNS/240108 Howell emto Blair: [deactivation, Kaal SAM vs QM].html STILL not in 'pHtmAllL.txt' -> 'pHtmExcL dirs.txt' CRAP!! excluded '/z_history/, /z_historic/] so I removed from list +-----+ Go back a few steps : 13h39m 07May25$ bash "$d_bin"'webLocal/webLocal run.sh' povrL_pStrP_replace, 250507 13h39m39s 250507 13h40m25s povrL_pStrP_replace error: povr doesnt exist : /home/bill/web/Neural nets/Conference guides/2019 IJCNN Budapest/schedule.html cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Equifax 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/GoFundMe 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Google 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Microsoft 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Patreon 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/PayPal 250208 letter archive.html': Permission denied 2 : System_maintenancezfszemail programszfsz System_maintenancezfszemailzfsz >> Howell: "letter archive.html" (several) already existed? ignore for now 14h19m 07May25$ bash "$d_bin"'webLocal/webLocal run.sh' dWeb_get_pHtmWebYesNonL, 250507 14h19m57s 14h22m 07May25$ bash "$d_bin"'webLocal/webLocal run.sh' povrL_pStrP_replace, 250507 14h23m00s ************************ 250507 14h23m00s "$d_bin"bin logs/povrL_pStrP_replace funcFamily pLog.txt bolChrCd = 1 povr_tmp = /media/bill/ramdisk/povrL_pStrP_replace pOvr1Tmp.txt pOvr2Tmp = /media/bill/ramdisk/povrL_pStrP_replace pOvr2Tmp.txt pStrPtmp = /media/bill/ramdisk/povrL_pStrP_replace pStrPtmp.txt pDiffTmp = /media/bill/ramdisk/povrL_pStrP_replace pDiffTmp.txt povr files processed : 250507 14h23m45s povrL_pStrP_replace error: povr doesnt exist : /home/bill/web/Neural nets/Conference guides/2019 IJCNN Budapest/schedule.html cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Equifax 250208 letter archive 250208 12h42m36s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Equifax 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/GoFundMe 250208 letter archive 250208 12h35m34s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/GoFundMe 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Google 250208 letter archive 250208 12h35m09s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Google 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Microsoft 250208 letter archive 250208 12h34m38s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Microsoft 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/Patreon 250208 letter archive 250208 12h29m56s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/Patreon 250208 letter archive.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/z_Archive/PayPal 250208 letter archive 250208 12h33m29s.html': Permission denied cp: cannot create regular file '/home/bill/web/Personal/241115 IDtheft/letters/z_Archive/PayPal 250208 letter archive.html': Permission denied start: 250507 14h23m45s ender: 250507 14h29m05s web/My sports & clubs/z_History/natural- CNS/240108 Howell emto Blair: [deactivation, Kaal SAM vs QM].html Kaal: Structured Atom Model (SAM) vs Quantum Mechanics (QM) http://www.billhowell.ca/ProjMini/Kaal-%20Structured%20Atom%20Model/Kaal%20Structured%20Atom%20Model%20vs%20Quantum%20Mechanics.html >> STILL failed, as now in "$d_projMaj"'Electric Universe/Kaal SAM nucleus/' >> p_Href: DOES list is (as before, my mistake), but no changes effected! My sports & clubs/natural- CNS/ My sports & clubs/z_History/natural- CNS/ >> why doesn't povrL_pStrP_replace work? "$d_web"'My sports & clubs/z_History/natural- CNS/240108 Howell emto Blair%3A [deactivation, Kaal SAM vs QM].html' %3A is mistake!! drop it for now +-----+ olde code # d_webWork archives - 16Feb2024 no longer used : instead use pth_getLocal_pArchive() # pWebPageL_pStrP_replaceGetBad_logCheck() calls pth_getLocal_pArchive # uses a common variable, pArXiv176, to hold value per use # d_webArch="$d_webWork"'z_Archive/' #08********08 #] 06May2025 step 2 pLnkIntPthL_get_pLnkIntPthGodBadLL seems to work? #08********08 #] 06May2025 step 2 - [get, check] links [All, Int, Ext, Bad, BMkInn, BmkOut] I'm lost - just use "$d_webWork"'pWebYesL.txt' webSite_get_links #(no args) extract links from webSite tons of "binary file matches" with Schmidhuber's stuff" : +-----+ 14h32m 06May25$ bash "$d_bin"'webLocal/webLocal run.sh' grep: /home/bill/web/Neural nets/References/24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/References/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/References/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches sort-grep start : 250506 14h39m30s sort-grep end : 250506 14h39m31s diff: : No such file or directory ~ 14h39m 06May25$ +-----+ #08********08 #] 06May2025 try again- get 1st line of legit webPages : $ date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss") $ find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE sed -n '1p' "FILE" | grep "^<\![ ]\+\/home\/bill\/web\/" | sort -u >"$d_webWork$date_ymdhms 1st line of html files.txt" >> somehow only captures a small fraction of legit webPages? >> even less as I retried during day >> error msg "grep: (standard input): binary file matches" 12h09m 06May25$ find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE sed -n '1p' "FILE" | grep ""$d_webWork$date_ymdhms 1st line of html files.txt" bash: ![: event not found 12h10m 06May25$ find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE sed -n '1p' "FILE" | grep "<\![ ]\+\/home\/bill\/web\/" | sort -u >"$d_webWork$date_ymdhms 1st line of html files.txt" >> no hits at all!?!?!? 12h13m 06May25$ date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss"); find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE sed -n '1p' "FILE" | grep "<\![ ]*\/home\/bill\/web\/" | sort -u >"$d_webWork$date_ymdhms 1st line of html files.txt" >> empty pout! 12h13m 06May25$ date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss"); find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE sed -n '1p' "FILE" | grep "\/home\/bill\/web\/" | sort -u >"$d_webWork$date_ymdhms 1st line of html files.txt" grep: (standard input): binary file matches >> only 36 files, not 202!!??!! what is wrong with this? try : 12h15m 06May25$ date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss"); find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE sed -n '1p' "FILE" | grep "/home/bill/web/" | sort -u >"$d_webWork$date_ymdhms 1st line of html files.txt" grep: (standard input): binary file matches >> same 36 files 12h16m 06May25$ date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss"); find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE sed -n '1p' "FILE" | sort -u >"$d_webWork$date_ymdhms 1st line of html files.txt" >> 374 kBytes, can't read +-----+ 12h18m 06May25$ cat "$d_webWork$date_ymdhms 1st line of html files.txt" ��ࡱ��>�� �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@ ��zZjbjb� /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/wrk page projects.html:2: /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/org Neural Networks.html:1: /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/wrk Neural Networks.html:1: /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/wrk 0_Fischer - The Great pricing Waves 1200-1990 AD.html:2: /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/org page projects.html:2: /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/org 0_Fischer - The Great pricing Waves 1200-1990 AD.html:2: /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/std page projects.html:2: /home/bill/web/bin/0_test/fileops/povrL_pStrP_fixLinks/std Neural Networks.html:1: /home/bill/web/ProjMini/Solar system/Cdn Solar Forecasting/CSWProgram.html:32: /home/bill/web/System_maintenance/security/encryption-decryption instructions.html:2: +-----+ >> crap, even more complicated now, legacy markings >> however, almost all are 0_test files +-----+ 10h14m 06May25$ find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | tr \\n \\0 | xargs -0 -IFILE grep --with-filename --line-number "\/home\/bill\/web\/webWork files\/head_one\.html" "FILE" /home/bill/web/ProjMini/Solar system/Cdn Solar Forecasting/CSWProgram.html:32: /home/bill/web/System_maintenance/security/encryption-decryption instructions.html:2: +-----+ >> hah! only 2 files, remove the lines from each I added '0_test\|' to dWeb_get_pHtmWebYesNonL() : find "$d_web" -type f -name "*.html" | grep --invert-match -i "0_test\|z_Old\|z_Archive\|z_history" | sort -u >"$pHtmAll769" >> however, it is in excludes : 'pHtmExcL dirs.txt' NOTE: 1. I did not find ANY files with 'I have put several "[non, not]WebPage" phrases before URL on 1st line.' What happened? 2. why the webPage difference? pWebYesL.txt "$d_temp"'1st line of html files.txt' 202 files 53 files does this mean that most of my webPages don't start with check function to retrieve all webPages # "$d_bin"'webSite.sh' - library of handy bash functions for webSite maintenance # dWeb_get_pHtmWebYesNonL(no args) - generate pthLsts of Howells [web, Href, Img, Extrn] where are instructions?: "$d_bin"'fileops run webSite instructions.txt' not [complete, coherent]? "$d_bin"'webSite.sh' - library of handy bash functions for webSite maintenance dWeb_get_pWebPageL funcNm changed to dWeb_get_pHtmWebYesNonL NOT changed yet - do search-replace? check run file: "$d_bin"'webSite run.sh' - run specific cases of fileops.sh functions webLocal_step1() { dWebWork_archiveLocal dWeb_get_pHtmWebYesNonL } >> seems OK re-run ONLY: webLocal_step0 # webSite LOCAL, [get, check] *links (same as last step!) >> Not working!?!? dWebWork_archiveLocal -> pinn_archiveLocal -> pth_getLocal_pArchive pth_getLocal_pArchive() { pInn951="$1" dArc951=$( pth_get_dArchive "$pInn951" ) fNam951=$( pth_get_fnam "$pInn951" ) fNoX951=$( fNam_get_fBase "$fNam951" ) fExt951=$( fNam_get_ext "$fNam951" ) echo "$dArc951$fNoX951 archive.$fExt951" } test: bash "$d_bin"'fileops run.sh' pth_get_dArchive "$d_bin"'fileops.sh' activate @end of file: pth_get_dArchive_run 21:12$ bash "$d_bin"'fileops run.sh' /home/bill/web/bin/z_Archive/ >> OK - looks good test pinn_archiveLocal - create [func, cmdLine@end] in "$d_bin"'fileops run.sh' pinn_archiveLocal "$d_bin"'fileops.sh' 21:16$ bash "$d_bin"'fileops run.sh' >> doesn't work???!!! #08********08 #] 22Apr2024 webSite links: massive screw-up, instructions SUCK! 18:40$ bash "$d_bin"'webSite run.sh' 27Feb2024 normal full webSite changes of strings povrL_pStrP_replace(bolArXiv bolChrCd povrL pStrP) webSite_get_links... >> see "$d_webWork"'240422 18h59m webLocal_step0 terminal errors.txt' massive screw-up, instructions SUCK! >> where are "diffs" done? webSite_get_internalLinksWithFnamLinNum links were NOT fixed! #08********08 #] 28Feb2024 upload webSite prematurely so I can emto Wickson for discussion see "$d_PROJECTS"'bin - secure/webSite update online lftp notes.txt' +-----+ 29Feb2024 hmm - I shouldn't upload Isabelle/HOL program stuff!! yikes!! need to add dExcl to pExc lftp!! see "$d_PROJECTS"'bin - secure/webSite update online lftp notes.txt' after lftp upload, must FileZilla check to delete [z_Archive, Isabelle, etc] #08********08 #] 27Feb2024 Wickson [cover, image, figures, comments] add something cover image - take picture #08********08 #] 27Feb2024 update webSite with 'pStrPAll_L change.txt' (from item below) Wickson moved files : add to pStrP >> hope this works! change povrL_pStrP_replace because of bookmarks: '^#] ' comment, not `# >> didn't work, try again with menu fixes "$d_bin"'webSite run.sh': activate webLocal_step[2, 3] >> still problems I fixed several mistakes in 'pStrPAll_L change.txt' "$d_bin"'webSite run.sh': activate webLocal_step[2, 3] >> quick checks Wickson 900y ONLY >> seems OK? 27Feb2024 'pGoodL_pFailL_bandAid TmpFail.txt' - empty, so i's not working #08********08 #] 27Feb2024 rename webOther subDirs to be consistent changed following dirNames added dirChanges to : "$d_webWork"'pStrPAll_L change.txt' /webWork/Neil Howell/ /webWork/Howell, Neil/ /webWork/Paul L Vaughan/ /webWork/Vaughan, Paul/ /webWork/Wickson website/ /webWork/Wickson, Steven/ /webWork/Steven H Yaskell/ /webWork/Yaskell, Steven/ nemo : cp "$d_web"'web/webOther/Paul L Vaughan/' to "$d_web"'web/webOther/Vaughan, Paul/' skip files of same length exception make renamed file, then cp : Vaughan 101223 - Confirmation of Solar forcing of the semi-annual variation of length-of-day.odt #08********08 #] 27Feb2024 spot check webPage links: [Grossberg, Kaal, Fischer] +-----+ Grossberg : menus : work TblOfContents : doesn't work - regenerate all other links: work >> OK, all good 10:49$ ls -1 '/home/bill/web/Neural nets/Grossberg' menus TblOfCont other links other ART assess theories of consciousnes bad n/a n/a no content! ART augmentation of other research. bad n/a n/a no content! Grossbergs ART- Adaptive Resonance OK n/a n/a only has themeL! Grossbergs [core, fun, strange] con OK consc item OK Grossbergs list of [chapter, sectio OK OK OK Grossbergs list of [figure, table]s OK OK OK Grossbergs list of index.html OK none none Grossbergs overview.html OK OK Comparision of rivalry (later) Grossbergs paleontology.html OK fixed none Grossbergs Principles, Principia.ht OK n/a n/a no content! Grossbergs quoted text.html OK fixed none Grossbergs what is consciousness.ht OK fixed OK almost no content reader Howell notes.html OK OK mostOK references- Grossberg.html OK n/a n/a no content! references- non-Grossberg.html OK none OK [use, modfication]s of c-ART.html OK n/a n/a no content! why is cART unknown.html OK n/a none yet very initial general issues : n/a haven't done yet ART [assess, augment] pMenuTop(.).html : some have pMenuTopMenu.html#Grossberg#TrNN_ART Status - nothing for Grossberg! problem links : overview? (Figure 2.03) Membrane equations of neurophysiology. Shunting equation "... Precursor of Shunting network model (Rail 1962) ...") reader Howell : "multiple conflicting hypothesis"- >> overall, very high success rate for links - catch bad ones later with pHtmBmkL_get_pGoodL_pFailL 27Feb2024 Grossberg - pMenuTop[status, copyright] 27Feb2024 Grossberg - ask for text list of references +-----+ Kaal : menus : work TblOfContents : doesn't work - regenerate all other links: work >> OK, all good 27Feb2024 SAFIRE webPage needs work... +-----+ Fischer : menus : work TblOfContents : doesn't work - regenerate all other links: work >> OK, now works extremely well with proper TblOfContents #08********08 #] 27Feb2024 [create, test] pGoodL_pFailL_bandAid(no args) 09:58$ bash "$d_bin"'webSite run.sh' grep: /home/bill/web/webWork/pLnkFailExcl.txt:98: Invalid range end >> many of these pTmpFail - NO contents (failed exclude) pTmpGood - 4411 lines, looks like that worked? oops - had added back pTmpFail so I took that out of cat change : #grep --invert-match --file="$pLnkFailExc769" "$pLnkFail769" >"$pTmpFail" to : diff "$pLnkFail769" "$pLnkFailExc769" --suppress-common-lines | grep "<" | sed 's/< //' >"$pLnkFailDif769" >> Awesome, looks good >> probably many errors in pLnkFailExc769, but at least I can now work with pLnkFail769 will have to do spot manual checks with webPages... #08********08 #] 26Feb2024 test pHtmBmkL_get_pGoodL_pBadL 18:58 leave it for another day... sort-of works, but not handy for making fixes far too much webPage work needed anyways! +-----+ 08:47$ bash "$d_bin"'webSite run.sh' /home/bill/web/bin/webSite run.sh: line 154: /home/bill/web/webWork/pHtmlPathAll_L.txt: No such file or directory /home/bill/web/bin/webSite run.sh: line 156: syntax error near unexpected token `}' /home/bill/web/bin/webSite run.sh: line 156: `}' ~ 09:08$ bash "$d_bin"'webSite run.sh' dWebWork_archiveLocal... ... +-----+ many errors like : /home/bill/web/bin/webSite.sh: line 118: : No such file or directory grep: Invalid range end +-----+ >> all 12,180 pLnkInt769 failed? must sort -u pLnk[Good, Fail]L.txt # tests 10:32$ pHtmBmk072='/home/bill/web/ProjMajor/Sun pandemics, health/_Pandemics, health, and the sun.html#Robert Prechter - Socionomics, the first quantitative sociology?' ~ 10:36$ echo "$pHtmBmk072" | sed 's|\#.*||' /home/bill/web/ProjMajor/Sun pandemics, health/_Pandemics, health, and the sun.html ~ >> OK, works 10:36$ pHtmBmk072='/home/bill/web/Neural nets/Grossberg/Grossbergs [core, fun, strange] concepts.html#ARTPHONE [gain control, working] memory' ~ 10:38$ echo "$pHtmBmk072" | sed 's|\#.*||' /home/bill/web/Neural nets/Grossberg/Grossbergs [core, fun, strange] concepts.html ~ >> OK, works 10:39$ pHtmBmk072='/home/bill/web/Neural nets/Grossberg/Grossbergs [core, fun, strange] concepts.html' ~ 10:39$ echo "$pHtmBmk072" | sed 's|\#.*||' /home/bill/web/Neural nets/Grossberg/Grossbergs [core, fun, strange] concepts.html ~ >> OK, works 10:39$ pHtmBmk072='/home/bill/web/ProjMajor/Sun pandemics, health/_Pandemics, health, and the sun.html#Robert Prechter - Socionomics, the first quantitative sociology?' ~ 10:43$ echo "$pHtmBmk072" | sed 's|.*\#||' Robert Prechter - Socionomics, the first quantitative sociology? ~ >> OK, works pTmpBol__072="$d_temp"'pHtmBmkL_get_pGoodL_pBadL temp bolBmk.txt' pth072='/home/bill/web/Neural nets/Grossberg/Grossbergs [core, fun, strange] concepts.html' bmk072='Robert Prechter - Socionomics, the first quantitative sociology?' grep -i "" "$pth072" >"$pTmpBol__072" >> fails: forgot to use pHtmBmk072#?? or what >> oops - no bmk 'Robert Prechter - Socionomics, the first quantitative sociology?' pTmpBol__072="$d_temp"'pHtmBmkL_get_pGoodL_pBadL temp bolBmk.txt' pth072='/home/bill/web/Neural nets/Grossberg/Grossbergs [core, fun, strange] concepts.html' 10:47$ bmk072='Principles, Principia' ~ 10:51$ grep -i "" "$pth072" >"$pTmpBol__072" ~ pTmpBol__072 : >> works 10:54$ if [ -s "$pTmpBol__072" ]; then echo 'works'; else echo 'no good'; fi works ~ >> OK, works 10:54$ bmk072='Robert Prechter - Socionomics, the first quantitative sociology?' ~ 10:56$ grep -i "" "$pth072" >"$pTmpBol__072" ~ 10:56$ if [ -s "$pTmpBol__072" ]; then echo 'works'; else echo 'no good'; fi no good ~ >> OK, good, as the bmk doesn't exist in that file +-----+ NUTS!!!! change : "$pGoodL__769" to : "$pLnkGood769" >> runs OK, results suck : >> pLnkGood.txt 602 lines >> pLnkFail.txt 3,798 lines >> grep: Invalid range end ~45 terminal lines spot check pLnkFail.txt : /home/bill/web/webWork/pMenuTopHelp.html#Theme webPage generation by bash script /home/bill/web/webWork/pMenuTopStatus.html#Wickson Grossberg - mostly png files Kaal (3290 - 3243 + 1) = 48 /home/bill/web/ProjMajor/Electric Universe/Kaal SAM nucleus/images/Kaal EU2017 Carl Johnson - Statistical analysis of isotope masses.png Schmidhuber - accounts for (3092 - 965 + 1) = 2,128 of 3,798 examples : /home/bill/web/Neural nets/References/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html#TUR1 /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html#NASC8 /home/bill/web/References/Neural Nets/Howell 110824 - Confabulation Theory - Plausible next sentence survey.pdf I must only check html files for bookmarks!! >> did nodifications to code 12:01$ bash "$d_bin"'webSite run.sh' ... grep: Invalid range end grep: Invalid range end grep: Invalid range end ~ >> wow, only 3 terminal errors this time >> pLnkGood.txt 1,711 lines >> pLnkFail.txt 3,798 lines same as last time?? pLnkFail.txt seems to have many good pHtmBmk check some : /home/bill/web/20120 [before, after] running head-on into a semi-tractor trailor hauling propane.jpg >> should be OK? /home/bill/web/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html#Comparison of [TradingView, Yahoo finance] data >> bad Table of Contents >> error generation ruins TblOfContents: why >> formatting not done - what a mess /home/bill/web/Bill Howells videos/120214 Venus et Mars, au dela d une histoire d amour/Mythology.ogv /home/bill/web/Bill Howells videos/220331 Hydrogen future Alberta/scripts - hydrogen future Alberta.txt >> why are these a problem? - pLnkFail.txt is FULL of good links!! +-----+ Hand-test them to see pTmpBol__072="$d_temp"'pHtmBmkL_get_pGoodL_pBadL temp bolBmk.txt' pth072='/home/bill/web/20120 [before, after] running head-on into a semi-tractor trailor hauling propane.jpg' bmk072='Robert Prechter - Socionomics, the first quantitative sociology?' grep -i "" "$pth072" >"$pTmpBol__072" I fixed pHtmBmkL_get_pGoodL_pBadL() : # test if there is a bookmark, or not bmk072=$( echo "$pHtmBmk072" | sed 's|.*\#||' ) if [[ "$pHtmBmk072" == "$bmk072" ]]; then #there is NO bookmark echo "$pHtmBmk072" >>"$pTmpGoodL072" else grep -i "" "$pth072" >"$pTmpBol__072" if [ -s "$pTmpBol__072" ]; then echo "$pHtmBmk072" >>"$pTmpGoodL072" else echo "$pHtmBmk072" >>"$pTmpFailL072" fi fi 13:46$ bash "$d_bin"'webSite run.sh' ... grep: Invalid range end grep: Invalid range end grep: Invalid range end ~ >> again, only 3 terminal errors this time >> pLnkGood.txt 1816 lines >> pLnkFail.txt 3799 lines same as last time?? >> ergo, problem NOT solved!??? most pLnkFail.txt are GOOD paths! change : grep -i "" "$pth072" >"$pTmpBol__072" if [ -s "$pTmpBol__072" ]; then echo "$pHtmBmk072" >>"$pTmpGoodL072" else echo "$pHtmBmk072" >>"$pTmpFailL072" fi to : grep -i "" "$pth072" >"$pTmpBol__072" if [ -s "$pTmpBol__072" ]; then echo "$pHtmBmk072" >>"$pTmpGoodL072" else echo "$pHtmBmk072" >>"$pTmpFailL072" fi >> still doesn't work 14:15$ echo '/home/bill/web/webWork/pMenuTopStatus.html#projMini' | grep '#' /home/bill/web/webWork/pMenuTopStatus.html#projMini ~ 14:16$ echo '/home/bill/web/webWork/pMenuTopStatus.html' | grep '#' ~ >> OK 14:19$ if [ -n '/home/bill/web/webWork/pMenuTopStatus.html' ]; then echo 'good'; else echo 'bad'; fi good ~ 14:19$ if [ -n '' ]; then echo 'good'; else echo 'bad'; fi bad ~ >> OK pth_get_ext '/home/bill/web/webWork/pMenuTopStatus.html' sh >> OK +--+ 15:47$ pHtmBmk072='/home/bill/web/Bill Howells videos/120214 Venus et Mars, au dela d une histoire d amour/Mythology.ogv' ~ 15:47$ pth072=$( echo "$pHtmBmk072" | sed 's|\#.*||' ) ~ 15:48$ echo "$pth072" /home/bill/web/Bill Howells videos/120214 Venus et Mars, au dela d une histoire d amour/Mythology.ogv ~ 15:48$ if [[ -f "$pth072" || -d "$pth072" ]]; then echo 'good'; else echo 'bad'; fi good ~ 15:49$ ext072=$( pth_get_ext "$pth072" ) pth_get_ext: command not found ~ 15:50$ ext072='ogv' ~ 15:51$ if [[ 'html' == "$ext072" ]]; then echo 'good'; else echo 'bad'; fi bad ~ >> OK, makes sense, so pHtmBmk072 should be in pLnkGoodL.txt, but it isn't!! >> YIKES!! yes it is >> Why? There are 3 copies of pHtmBmk072 in pLnkInt.txt webSite_get_links() must sort -u 17:17$ bash "$d_bin"'webSite run.sh' webSite_get_links... grep: /home/bill/web/Neural nets/References/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches ... many sort-grep start : 240226 17h25m05s sort-grep end : 240226 17h25m05s ... grep: Invalid range end grep: Invalid range end grep: Invalid range end >> file lines pLinkInt.txt 4,414 pLnkGood.txt 1,832 pLnkFail.txt 4,352 must be overlap big time, why? +-----+ pLnk[Good, Fail].txt share many common paths How does this happen? shouldn't 17:56$ comm -12 "$d_webWork"'pLnkGood.txt' "$d_webWork"'pLnkFail.txt' >"$d_temp"'pLnk[Good, Fail] common lines.txt' ~ >> 1,765 lines are common (pretty well all of pLnkGood.txt) But how is the same file sent to both lists? logic is either-or??? obviously not temp files aren't rm ! pTmpGoodL072="$d_temp"'pHtmBmkL_get_pGoodL_pBadL temp Good.txt' pTmpFailL072="$d_temp"'pHtmBmkL_get_pGoodL_pBadL temp Fail.txt' 18:06$ bash "$d_bin"'webSite run.sh' ... grep: Invalid range end grep: Invalid range end grep: Invalid range end ~ 18:08$ >> file lines pLinkInt.txt 4,414 pLnkGood.txt 1,832 pLnkFail.txt 4,352 >> same as before ARRRGGGHHH!! 18:11$ comm -12 "$d_webWork"'pLnkGood.txt' "$d_webWork"'pLnkFail.txt' >"$d_temp"'pLnk[Good, Fail] common lines.txt' >> 1,765 lines are common, no change from before +-----+ For now, fudge a list of problematic links 18:41$ diff "$d_webWork"'pLnkFail.txt' "$d_webWork"'pLnkGood.txt' --suppress-common-lines | grep "<" | sed 's/^< //' >"$d_webWork"'pFailDiff.txt' ~ >> gives 2588 lines (too many?) BUT pLnkGood.txt + pFailDiff.txt ~= pLinkInt.txt 1,832 + 2,588 ~= 4,420 leave it for another day... sort-of works, but not handy for making fixes +-----+ olde code # # 25Feb2024 REVAMP!!! file-exists no good if there is a bookmark!!!! # while IFS='' read -u 366 pLnkIn_769; do # bolBmk366=$( echo "$pLnkIn_769" | grep '#' ) # if [[ -n "$bolBmk366" ]]; then # bolLnk=$( 'link check in place of -f????' ) # # if ?? [[ == "$bolLnk" ]]; then # echo "$pLnkIn_769" >>"$pLnkFail769" # fi # else # if ! [[ -f "$pLnkIn_769" || -d "$pLnkIn_769" ]]; then # echo "$pLnkIn_769" >>"$pLnkFail769" # fi # fi # done 366<"$pLnkInt769" #08********08 #] 25Feb2024 Howell : write bash function that does test for html files only see "$d_bin"'webSite.sh' +-----+ don't create - don't need for now : # pHtmBmkL_is(pHtmBmkL) - local backups of key d_webWork files # ?date? initial, 23Feb2024 convert to global env symbols in 'fileops header.sh' # 23Feb2024 should eventually move into functions that change files (some already done) pHtmBmk_is() { } +-----+ olde code # webSite_check_internalLinks(no args) - check internal links, 2nd set of bads to pLnkFailL # to within webSite # also : do BEFORE uploading online to webSite & fix problems # QNial version # urls_check IS OP linkType d_backup - ] create sublists of [internal,xternal] links # >> I'm just checking if a path exists # 14Sep2023 initial from QNial webSite_check_internalLinks() { date_ymdhms=$(date +"%0y%0m%0d %0kh%0Mm%0Ss") echo >>"$p_log" "$date_ymdhms webSite_check_internalLinks" echo 'webSite_check_internalLinks...' # 'webSite header.sh' : pLnk[Fail, Int]769 # pLog366="$d_webWork"'webSite_check_internalLinks log.txt' if [ -f "$pLnkGood769" ]; then pinn_archiveLocalRm "$pLnkGood769"; fi if [ -f "$pLnkFail769" ]; then pinn_archiveLocalRm "$pLnkFail769"; fi # do all, even if a pHtmBmk has no bookmark, it is still "good" if the pth is good pHtmBmkL_get_pGoodL_pBadL "$pWebYes769" "$pLnkGood769" "$pLnkFail769" } #08********08 #] 25Feb2024 [webSite_get_links, pWebL_get_pLnkL_run] fix for bookmarks around & around in circles, rename [func, sym]s, pinn_archiveLocal [efficiency, complete] look again at [pWebPag_sedStrt_get_pLnkL, webSite_get_links] : OK, finally too tired, just try webLocal_step3 webSite_[get_link, check_internalLink]s() : 14:24$ bash "$d_bin"'webSite run.sh' /home/bill/web/bin/webSite.sh: line 476: syntax error near unexpected token `done' /home/bill/web/bin/webSite.sh: line 476: ` done' /home/bill/web/bin/webSite run.sh: line 286: webSite_get_links: command not found /home/bill/web/bin/webSite run.sh: line 323: webSite_check_internalLinks: command not found >> oops... +-----+ #] curl : can't get to work consistently : see "$d_SysMaint"'Linux/curl notes.txt' +-----+ #] use file-exists test? nyet... 18:41$ putter='/home/bill/web/Bill Howells book [note, review]s/Wilson 1977 Cosmic trigger, Howells review.html#Summary comments' ~ 18:41$ if [ -f "$putter" ]; then echo 'yes'; else echo 'no'; fi no ~ >> not good enough +-----+ #] search "Linux html test path with #" still can't find anything good +-----+ Howell : write bash function that does test for html files only +-----+ olde code pWebPag_sedStrt_get_pLnkL() # grep "^#" "$pLnkTmp577" | sort -u >"$pLnkBmkInn769" # grep "^[#]\(.*\)#" "$pLnkTmp577" | sort -u >"$pLnkBmkOut769" # nItrMax=0 # if [[ "$nItr" -gt "$nItrMax" ]]; then nItrMax="$nItr"; fi webSite_get_links() grep -i "$sedLnk" "$pLnkTmp901" | sed 's|\(.*\)#.*|\1|' | sort -u >"$pLnkAll769" 'webSite header.sh' : pLnkRaw769="$d_webWork"'pLnkRaw.txt' #08********08 #] 24Feb2024 search for pLnkFail - doesn't work, is it the bookmarks? this means a simple check for [ -f pth ] isn't enough!!? #08********08 #] 24Feb2024 split webSite.sh from fileops.sh (as was before) see "$d_bin"'fileops run.sh' create webSite.sh from fileops.sh, adjust header files etc yet aonther check of 'pStrPAll_L change.txt' Now - 'pStrPAll_L change.txt' - are ^# lines ignred?? see "$d_bin"'fileops notes.txt' >> should work now (I hope) 16:44$ bash "$d_bin"'webSite run.sh' 23Feb2024 pStrPAll_L change.txt - fix up what I can, also 24Feb2024 povrL_pStrP_replace(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) ... ~ 16:59$ bash "$d_bin"'webSite run.sh' webSite_get_links... /home/bill/web/bin/webSite.sh: line 513: : No such file or directory cat: '': No such file or directory /home/bill/web/bin/webSite.sh: line 516: : No such file or directory "=FERH 9724 '=FERH 32 "=ferh 17243 '=ferh 6 "=CRS 405 '=CRS 0 "=crs 787 '=crs 35 webSite_check_internalLinks... #08********08 #] 23Feb2024 corrections for "$d_webWork"'pStrPAll_L change.txt' fix dWebWork_archiveLocal() : archive pL when working on webSite pLnkL_diffNum_pLogs() - removed as is obsolete... First [archive, update] * p[Htm, Web]L : 10:53$ bash "$d_bin"'webSite update local.sh' dWebWork_archiveLocal... find all html files extract webPages from htmlL: they have strTst /home/bill/web/bin/fileops.sh: line 1363: warning: command substitution: ignored null byte in input /home/bill/web/bin/fileops.sh: line 1363: warning: command substitution: ignored null byte in input >> must fix two above errors (later) >> Weird, why are [foot, head]er files updated??? >> Overall, pWeb[YesL, Diff].txt look OK continue : corrections for "$d_webWork"'pStrPAll_L change.txt' +-----+ olde code get rid of redirection : simplify, can always use new 'filops header.sh' # webSite_get_links(no args) - extract links, note pLnkBadL.txt captures initial bads # normal use for my webSite, globals to define args (not worth passing variables) # see also webSite_get_links_test() in "$d_bin"'0_test/fileops/fileops test.sh' # usually for website management, I start only with base path, worry about bookmarks later # 03Sep2023 initial, needs a tiny bit of manual work, also #08********08 #] 22Feb2024 [curl, lftp, wget] for visitor to download a directory listing of my webSite ouch! not working did I set permissions too low if I allow ftp-download, is my website vulnerable to uploads? can I even allow that? or is it more money for a different type of site? #08********08 #] 22Feb2024 pLnkFail.txt 94 lines -> [fix pMenuTop(.*), pStrP for povrL_pStrP_replace] should be able to get very low number of "visible" errors +-----+ pStrP for povrL_pStrP_replace povrL_pStrP_replace(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) does it NOT process a file (change timestamp) if search term doesn't appear? 08:56$ cp -p "$d_webWork"'pLnkFail.txt' "$d_webWork"'240222 pLnkFail to pStrP.txt' create initial pStrP : geany regexpr search : (.*) replace : \1\t\1\n now edits using nemo filemgr +-----+ webSite_get_links: speed-up +-----+ fix pMenuTop(.*) if necessary Nah - don't piss around ; do pStrP first #08********08 #] 21Feb2024 webSite_check_internalLinks - find failed internal links 17:51$ bash "$d_bin"'webSite update local.sh' webSite_check_internalLinks... >> pLnkFail.txt : 735 lines!! >> huge number of /TrNNs_ART/ still >> pLnkInt.txt must be way out of date???? [/TrNNs_ART/, corrected] dirs both listed I can't find where NEW pLnkInt.txt is generated!!!??? check webSite_get_links() grep -i --invert-match "$sedLnk" "$pLnkTmp901" | grep --invert-match '???\|\.\/\|\");' | sort -u >"$pLnkBad901" grep -i "$sedLnk" "$pLnkTmp901" | sed 's|\(.*\)#.*|\1|' | sort -u >"$pLnkAll901" grep "^\/home\/bill\/web\/" "$pLnkAll901" >"$pLnkInt901" grep "^http:\/\/\|^https:\/\/" "$pLnkAll901" >"$pLnkExt901" So pLnkAll is source of problem... but how did /TrNNs_ART/ sneak back in? it's like there is a fantom old copy of 'Grossbergs list of [figure, table]s.html' NOT in pHtmAllL.txt maybe z_Arcvhives are being included? dWeb_get_pHtmWebYesNonL() find "$d_web" -type f -name "*.html" | grep --invert-match -i "z_Old\|z_Archive\|z_history" | sort -u >"$pHtmAll769" nyet $ cat "$d_webWork"'pLnkAll.txt' | tr \\n \\0 | xargs -0 -IFILE grep --with-filename --line-number '\/Neural nets\/TrNNs_ART\/' "FILE" | sed "s|\/home\/bill\/web\/||;s|:.*||" | sort -u >"$d_temp"'pLnkAll grep TrNNs_ART.txt' >> huge terminal output of errors +--+ ... grep: http://www.oiq.qc.ca/bulletins/25/images/zaki_ghavitian.jpg: No such file or directory grep: http://www.oism.org/pproject/: No such file or directory grep: http://www.oism.org/pproject/s33p36.htm: No such file or directory grep: http://www.olsc.ca/: No such file or directory grep: http://www.ptep-online.com/2015/PP-41-13.PDF: No such file or directory grep: http://www.ptep-online.com/2018/PP-53-01.PDF: No such file or directory ... +--+ "$d_temp"'pLnkAll grep TrNNs_ART.txt' : bin/image bin/webSite update notes.txt Neural nets/callerID-SNNs/callerID-SNNs.html Neural nets/MindCode/MindCode webPage.html webOther/Wickson website/webWork/pMenuTopCopyright Wickson.html webOther/Wickson website/webWork/pMenuTopHelp Wickson.html webOther/Wickson website/webWork/pMenuTopMenu Wickson.html webOther/Wickson website/webWork/pMenuTopStatus Wickson.html webWork/pMenuTopHelp.html +--+ >> fixed up mostly Wickson webSite - a lot of Grossberg's stuff webLocal_step3 # webSite LOCAL, [get, check] *links 21:06$ bash "$d_bin"'webSite update local.sh' webSite_get_links... webSite_check_internalLinks... >> pLnkFail.txt 94 lines - make pStrP from them, should be able to get very low "visible" errors #08********08 #] 21Feb2024 webSite_get_links() - clean up bad links ran - see stats in "$d_bin"'webSite update local.sh' pLnkBad.txt, need to grep-out : line = whitespace ??? ./ these should be fixed to [track, fix] links, but will work supposedly "); %20, examples: Howell%20-%20Are%20we%20ready%20for%20global%20cooling%2014Mar06%20longer%20version.pdf Top%2075%20Immunotherapy%20startups_files/ Schmidhuber%2024Sep2021%20Scientific%20Integrity,%20the%202021%20Turing%20Lecture,%20and%20the%202018%20Turing%20Award%20for%20Deep%20Learning_files/critique-turing-award-lecture754x288.png Campbell,%20Grossman,%20Turner%2004Sep2019%20monthly%20British%20stock%20market,%201829-1929_files/AdobeStock_87854486.jpeg Schmidhuber%2024Sep2021%20Scientific%20Integrity,%20the%202021%20Turing%20Lecture,%20and%20the%202018%20Turing%20Award%20for%20Deep%20Learning_files/critique-turing-award-lecture754x288.png Gregory Aug07 - Climate Change Science_files/header.png maybe half of bad links related to juergen. Examples : ftp://ftp.idsia.ch/pub/juergen/IJCAI07sequence.pdf [#=; backtrack ;=#]Neural nets/Conference guides/2020 WCCI Glasgow/logo_IEEE.png [#=; backtrack ;=#]Neural nets/Conference guides/2020 WCCI Glasgow/logo_IEEE-CIS.png [#=; backtrack ;=#]Neural nets/Conference guides/2019 IJCNN Budapest/logo_INNS.png [#=; backtrack ;=#]Neural nets/Conference guides/2020 WCCI Glasgow/logo_IET.jpg [#=; backtrack ;=#]Neural nets/Conference guides/2020 WCCI Glasgow/logo_EPS.png [#=; backtrack ;=#]Neural nets/Conference guides/2020 WCCI Glasgow/logo_NapierU.jpg [#=; backtrack ;=#]Neural nets/Conference guides/2019 IJCNN Budapest/logo Nokia Bell Labs.png [#=; backtrack ;=#]Neural nets/Conference guides/2019 IJCNN Budapest/logo-bscs.png [#=; backtrack ;=#]Neural nets/Conference guides/2019 IJCNN Budapest/logo MDPI Information and Algorithms.jpg [#=; backtrack ;=#]Neural nets/Conference guides/2019 IJCNN Budapest/logo Genisama.png +-----+ Clean up original links in webPages, then save remaining to filter out. It's far easier (for me) to simply create (pStrP, povrL) files for : povrL_pStrP_replace(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) webSite_get_links_run() changeto : grep -i --invert-match "$sedLnk" "$pLnkTmp901" | grep --invert-match '???\|\.\/\|\");' >"$pLnkBad901" 15:33$ bash "$d_bin"'webSite update local.sh' 21Feb2024 pLnkBad.txt - fix up what I can povrL_pStrP_replace(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) ... grep: (standard input): binary file matches grep: (standard input): binary file matches 16:48$ bash "$d_bin"'webSite update local.sh' webSite_get_links... >> this did NOT help at all! all ther old LnkBads still appear. Huge waste of time that distracts me from fixing errors. +-----+ try manually (now in webSite_get_links_run()) : # track bad links - many to much work to fix, not critical $ sedLnk="^\/home\/bill\/web/\|^http:\/\/\|^https:\/\/\|^#\|^[#]\(.*\)#" $ grep -i --invert-match "$sedLnk" "$pLnkTmp901" | grep --invert-match '???\|\.\/\|\");' | sort -u >"$pLnkBad901" start with $ pLnkBad901="$d_webWork"'pLnkBad.txt' $ pLnkBadStd901="$d_webWork"'pLnkBadStd.txt' $ pLnkBadDif901="$d_webWork"'pLnkBadDif.txt' $ sort -u "$pLnkBad901" >"$pLnkBadStd901" $ diff "$pLnkBadStd901" "$pLnkBadStd901" --suppress-common-lines >"$pLnkBadDif901" >> excellent, "$d_webWork"'pLnkBadDif.txt' has zero content. >> only ~1239 lines in "$d_webWork"'pLnkBadStd.txt' At least I will be able to easily see CHANGES without huge cleanup effort #08********08 #] 20Feb2024 fix [link, pTopMenu]s in 'Neural nets/[consciousness, Grossberg]/' : +-----+ mv [fil, dir]s from conscioussness to Grossberg : consciousness - Grossberg-related thems, which must mv to Grossberg? : y "$d_neural"'consciousness/ART assess theories of consciousness.html y "$d_neural"'consciousness/ART augmentation of other research.html "$d_neural"'consciousness/[definitions, models] of consciousness.html "$d_neural"'consciousness/For whom the bell tolls.html y "$d_neural"'consciousness/Grossbergs what is consciousness.html "$d_neural"'consciousness/Introduction.html "$d_neural"'consciousness/machine consciousness, the need.html "$d_neural"'consciousness/opinions- Blake Lemoine, others.html "$d_neural"'consciousness/Pribram 1993 quantum fields and consciousness proceedings.html "$d_neural"'consciousness/Quantum consciousness.html "$d_neural"'consciousness/Taylors consciousness.html "$d_neural"'consciousness/TrNN controls need consciousness.html "$d_neural"'consciousness/TrNNs augment by cART.html "$d_neural"'consciousness/TrNNs have incipient consciousness.html y "$d_neural"'consciousness/videoProdn/Grossbergs ART- Adaptive Resonance Theory workCore.html y "$d_neural"'consciousness/videoProdn/Grossbergs ART- Adaptive Resonance Theory workCull.html y "$d_neural"'consciousness/videoProdn/Grossbergs Consciousness: video script.html >> mv ALL "$d_neural"'consciousness/videoProdn/' "$d_neural"'consciousness/Walter Freemans chaos.html "$d_neural"'consciousness/webWork/bash script: put [caption, reference]s on [figure, table]s.html y "$d_neural"'consciousness/webWork/Grossbergs [core, fun, strange] concepts header file.html "$d_neural"'consciousness/webWork/pMenuTopCopyright TrNNs_ART.html "$d_neural"'consciousness/webWork/pMenuTopHelp TrNNs_ART.html "$d_neural"'consciousness/webWork/pMenuTopMenu TrNNs_ART.html "$d_neural"'consciousness/webWork/pMenuTopStatus TrNNs_ART.html "$d_neural"'consciousness/What is consciousness: from historical to Grossberg.html y "$d_neural"'consciousness/why is cART unknown.html +-----+ NYET!!! : TRASH separate Menus to [Grossberg, consciousness] maximize simplicity for webMaintainer (me) but not for user >> done, works 21Feb2024 [copy, transform] from : "$d_[consciousness, Grossberg]"'webWork/pHtmlClass[consciousness, Grossberg].txt to : "$d_webWork"'pHtmlClassAll_L.txt' >> actually, just morphed "$d_Grossberg"'webWork/pHtmlClassGrossberg.txt' +-----+ fix povrL for d_[Grossberg, consciousness] : $ grep '/Neural nets/consciousness/' "$d_webWork"'pWebYesL.txt' >"$d_webWork"'240221 webPageL consciousness.txt' $ grep '/Neural nets/Grossberg/' "$d_webWork"'pWebYesL.txt' >"$d_webWork"'240221 webPageL Grossberg.txt' >> errors in list, must regenerate pWebYesL >> done - OK, povrL look OK +-----+ make consciousness changes with : povrL_pStrP_replace(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) see webLocal_step2() in "$d_bin"'webSite update local.sh' did consciousness first to see if any issues oops - forgot class fix : consciousness.html#TrNN_ART"> consciousness.html#consciousness"> try again : >> seems OK >> click through menu hah - still forgot +--+ change : /Neural nets/TrNNs_ART/ /Neural nets/consciousness/ pMenuTopMenu TrNNs_ART.html pMenuTopMenu consciousness.html pMenuTopStatus TrNNs_ART.html pMenuTopStatus consciousness.html pMenuTopCopyright TrNNs_ART.html pMenuTopCopyright consciousness.html pMenuTopHelp TrNNs_ART.html pMenuTopHelp consciousness.html to: /Neural nets/TrNNs_ART/ /Neural nets/consciousness/ /web/Neural nets/consciousness/webWork/pMenuTopMenu consciousness.html#consciousness /web/webWork/pMenuTopMenu.html#consciousness /web/Neural nets/consciousness/webWork/pMenuTopStatus consciousness.html#consciousness /web/webWork/pMenuTopStatus.html#consciousness /web/Neural nets/consciousness/webWork/pMenuTopCopyright consciousness.html#consciousness pMenuTopCopyright.html#consciousness /web/Neural nets/consciousness/webWork/pMenuTopHelp consciousness.html#consciousness /web/webWork/pMenuTopHelp.html#consciousness +--+ >> OK, now many more fuckups change-to : /home/billpMenuTopCopyright.html#consciousness /home/bill/web/webWork/pMenuTopCopyright.html#consciousness >> OK, other problems leave for another day of detail +-----+ make Grossberg changes with : povrL_pStrP_replace(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) see webLocal_step2() in "$d_bin"'webSite update local.sh' "$d_webWork"'240220 Grossberg changes.txt' /Neural nets/TrNNs_ART/ /Neural nets/Grossberg/ /web/Neural nets/pMenuTopMenu TrNNs_ART.html /web/webWork/pMenuTopMenu.html#Grossberg /web/Neural nets/pMenuTopStatus TrNNs_ART.html /web/webWork/pMenuTopStatus.html#Grossberg /web/Neural nets/pMenuTopCopyright TrNNs_ART.html /web/webWork/pMenuTopCopyright.html#Grossberg /web/Neural nets/pMenuTopHelp TrNNs_ART.html /web/webWork/pMenuTopHelp.html#Grossberg 2 more iterations as recorded in "$d_webWork"'240220 Grossberg changes.txt' >> now looks good reeady to re-extract links #08********08 #] 20Feb2024 mv /TrNN/ to USB backup done - fix crap later... #08********08 #] 20Feb2024 'pLnkBad.txt' - pre-extract "clean inPage" bookmarks (line starts with `#) webSite_get_links_run() change : grep "#" "$pLnkTmp901" | sort -u >"$pLnkBmk901" sedLnk="^\/home\/bill\/web/\|^http:\/\/\|^https:\/\/" to : grep "^#" "$pLnkTmp901" | sort -u >"$pLnkBmkInn901" sedLnk="^\/home\/bill\/web/\|^http:\/\/\|^https:\/\/\|^#" >> original gets bkmks, but not necessarily "clean inPage" ones OK, that's a start. However, all the pLnkBads that I checked are full lineds with legitimate links!!! >> why is this happening? pInnL_get_pLnkL_run() change : nsedRvrs577=$( echo "$linMix577" grep -o "$sedRvrs577" | wc -l ) to : nsedRvrs577=$( echo "$linMix577" | grep -o "$sedRvrs577" | wc -l ) see what happens now??? HUGE improvement in nLnkBad!!!! from 31933 down to 2325 >> much easier to [work with, fix]!!! many links /Neural nets/TrNNs_ART/ #08********08 #] 16Feb2024 [fix, update] pLnk stuff run webSite_get_links() in "$d_bin"'webSite update local.sh' changed pHtmAllL (too many links!!) to pHtmIncL 19:55$ bash "$d_bin"'webSite update local.sh' webSite_get_links... grep: /home/bill/web/Neural nets/References/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/References/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/References/Climate/HTML Quick List - HTML Code Tutorial.html: binary file matches grep: /home/bill/web/References/Neural Nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches sedRvrs = "=FERH ; nsedRvrsAll = 11053 frequent messages : binary file matches sedRvrs nsedRvrs pHtmInc769 22Oct2023 16Feb2024 "=FERH 12067 11053 '=FERH 32 32 "=ferh 14457 17275 '=ferh 1 6 "=CRS 177 414 '=CRS 0 0 "=crs 518 810 '=crs 27 35 run time 06m06s 08m15s nLnkAll 5422 nLnkInt 1309 nLnkExt 4113 nLnkBad 31933 pLnkFail.txt : /home/bill/web/bin/starter/start_app.sh /home/bill/web/eir3.gif /home/bill/web/../eir_subscribe_button.gif /home/bill/web/eirtoc/2000/eirtoc_2742.html /home/bill/web/My sports & clubs/natural- CNS/240102 Howell emto Blair: transmutation of fission wastes.html /home/bill/web/Neural nets/Mind2023/ /home/bill/web/Neural nets/Mind2023/voice musings/ /home/bill/web/Neural nets/Mind2023/voice musings/231106_2212 Glenn Borchardts concept of infinity, avoid myopic thinking.mp3 /home/bill/web/Neural nets/MindCode/??? /home/bill/web/Neural nets/MindCode/10 Howell - MindCode Manifesto.odt /home/bill/web/Neural nets/TrNNs_ART/Social media/Howell 111230 - Social graphs, social sets, and social media.doc /home/bill/web/Neural nets/TrNNs_ART/videoProdn/Grossbergs Consciousness: video script.html /home/bill/web/Personal/130726 Deer collison/Car collision with a deer.html /home/bill/web/Personal/181211 Van versus Semi collision/181211 Van versus Semi collision.html /home/bill/web/Personal/Thoughts/Howell - A bag of [random, scattered] quasi-principles for commentaries.html /home/bill/web/pubinfo.html /home/bill/web/Qnial/MY_NDFS/MindCode/2_MindCode [data, optr]s.txt /home/bill/web/webOther/Wickson website/Grossbergs [core, fun, strange] concepts.html /home/bill/web/webOther/Wickson website/Grossbergs list of [chapter, section]s.html /home/bill/web/webOther/Wickson website/images- captioned/ /home/bill/web/webOther/Wickson website/images- captioned/cover image.png /home/bill/web/webOther/Wickson website/webWork/pMenuTopCopyright TrNNs_ART.html /home/bill/web/webOther/Wickson website/webWork/pMenuTopHelp TrNNs_ART.html /home/bill/web/webOther/Wickson website/webWork/pMenuTopMenu TrNNs_ART.html /home/bill/web/webOther/Wickson website/webWork/pMenuTopStatus TrNNs_ART.html /home/bill/web/webOther/Wickson website/What is consciousness: from historical to Grossberg.html /home/bill/web/webWork/fileops run commentary.html /home/bill/web/webWork/fileops run commentary, webSite.html /home/bill/web/webWork/fileops run webSite general.sh #08********08 #] 16Feb2024 add back [href, img] pthLsts, maybe [, non-] Howell html file [list, num], [extern] problem what that exclude file MIST hacve at least one entry, or nothing passes --invert-match >> now seems to work well #08********08 #] 14Feb2024 re-implement 'pHtmlPathExclL *.txt' capabilities should be [part of, precede] fileops.sh, dWeb_get_pWebPageL() these act on fNamL only : dWeb_get_pWebPageL() find "$d_web" -type f -name "*.html" | grep --invert-match -i "z_Old\|z_Archive\|z_history" | sort -u >"$pAllL__769" pinnL_idx_strTst_split_pYes_pNo() pinnL_idx_strTst_split_pYes_pNo "$pAllL__769" "$index__769" "$strTst_769" "$pWebYes769" "$pWebNo_769" "$pDifYes769" "$pDifNo_769" nyet, excludes ARE fNamLs! : has to kick in when listing files, BEFORE pinnL_lineIdx_strTst_split_pYes_pNo do it in dWeb_get_pWebPageL, exclude BOTH [intern, extern]? see "$d_SysMaint"'Linux/grep notes.txt' in "$d_SysMaint""Linux/grep summary.txt" : # exclude pExcludeL from a pthLst # grep --invert-match --file="$d_webWork"'pHtmlPathExclL webPage.txt' -i "$d_temp"'pHtml test.txt' >"$d_temp"'pHtml no excludes.txt' #08********08 #] 13Feb2024 [fix, improve] bash code to extract webSite links other paths from d_webWork : nu pHtmlPathExclL non-webPage.txt nu pHtmlPathExclL [non-webPage, yes].txt nu pHtmlPathExclL webPage.txt nu pHtmlPathExcl [non-webPage, yes].txt webUpdateCmdL_local() nu = not used in [fileops.sh, webSite update local.sh] mv into header!! keep pHtmlPathWebPage no.txt keep pHtmlPathWebPage yes.txt +-----+ 14Feb2024 oops - current code does NOT exclude any files!!! see "$d_bin"'webSite update local.sh' - process to update [, sub]webSites webUpdateTmp_local(no args) - avoid link stuff [list current webPages, check changes, etc] +-----+ # $ bash "$d_bin"'webSite update local.sh' - process to update [, sub]webSites # ToDos - see "$d_bin"'webSite update notes.txt' # bad_to_worse() - split pLnkBad.txt into pLnkBad[Bkmk, Goog, Jrgn, , ].txt # put this into webLocal_step1() when it is working properly # webUpdateTmp_local(no args) - avoid link stuff [list current webPages, check changes, etc] # un-comment parts that apply # 22Jan2024 change webPage [code, title]s # 22Jan2024 find <:class:> codes so I can fix them (usually in title) # 22Jan2024 find webPage titles with 'Howell' so I can fix them # 29Jan2024 check for webPages with missing space in first line # webUpdateCmdL_local(no args) - don't RUN this! just copy-paste, this is an easy record # 22Jan2024 search for known problems [www.BillHowell.ca, theme code]s # +-----+ # webLocal_step1() - webSite LOCAL, [archive, [get, change, check]*[webPage, link]s], # diff 'HtmlPathAll_L[ archive, ].txt' # +-----+ # OnLine work, including [dWebHtmlOnly, lftp upload] # dHtmlPathAllL_notIn_dHtmlWebOnlyL(no args) - use FileZilla for fast mv of dirs as needed # webPage_rm_dWebHtmlOnly(no args) - rm html files in dWebOnly to make sure it's "clean" # "$d_bin"'rsync web to d_webOnly (NOT webOnline).sh' - current pHtmlPathAll_L.txt # pHtmlPathAll_L upload onLine - online webPages, this MUST be run ONLY from : +-----+ #08********08 #] 13Feb2024 fix dWeb_get_pWebPageL() in fileops.sh: correct [set, use] * [dir, pth] names see above "Current exclude file subDirL" see "$d_bin"'fileops notes.txt' work being done in fileops.sh #08********08 #] 13Feb2024 Grossberg and rest of webSite- fix links etc It looks like recent updates have changed key files, but many aren't used in [fileops.sh, webSite update local.sh]. Did I simply use command-line for the early Feb updates? 11Jan2024 fix webSite_get_links_run() >> not in "$d_bin"'fileops run.sh' >> webSite_get_links is in "$d_bin"'webSite update local.sh' >> "$d_bin"'webSite loPriority.sh', not helpful here : # +-----+ # OnLine work, including [dWebHtmlOnly, lftp upload] # dHtmlPathAllL_notIn_dHtmlWebOnlyL(no args) - use FileZilla for fast mv of dirs as needed # webPage_rm_dWebHtmlOnly(no args) - rm html files in dWebOnly to make sure it's "clean" # "$d_bin"'rsync web to d_webOnly (NOT webOnline).sh' - current pHtmlPathAll_L.txt # pHtmlPathAll_L upload onLine - online webPages, this MUST be run ONLY from : 07Jan2024 update local webSite using "Live template" "$d_bin"'fileops run webSite 240107.sh' this should provide a stable record of what was done & when >> can't find "$d_bin"'fileops run webSite 240107.sh'!!!! >> "$d_bin"'z_Archive/' -> fileops run webSite 240107 20h41m22s.sh htmlHeadings_to_TblOfContents -> [moved or renamed] to "$d_bin"'webSite loPriority.sh' >> "$d_bin"'webSite loPriority.sh' - was being re-written, not much done yet 19Jan2024 dWeb_get_pWebPageL - fubarred! in "$d_bin"'fileops notes.txt' What a mess! I must have done things adhoc Probably need to fix dWeb_get_pWebPageL() in fileops.sh correct [set, use] * [dir, pth] names #08********08 #] 23Jan2024 Kaal webPage - draft done, update whole webSite "$d_PROJECTS"'bin - secure/webSite update online lftp.sh' I uncommented both "onLine update" functions : dWeb_uploadNonWebPage_online pWebPageL_upload_online $ bash "$d_PROJECTS"'bin - secure/webSite update online lftp.sh' #08********08 #] 22Jan2024 ToDos y add [class, comment]s : to pMenuTop[Copyright, Help, Menu, Status].html for each webPage y remove Howell : Howell: fileops [nomenclature, docs] ? projmajr etc : rename in TopMenus to "Howell [project, interests]" class TrNN_ART : keep it the same for now, a year or two away perhaps change [Grossberg, Wickson?] : their own menus maybe not? rename 'webOther/Wickson website/' -> 'webOther/Stephen Wickson/' #08********08 #] 22Jan2024 change webPage [class, title]s "$d_bin"'webSite update local.sh' grep -i --with-filename --line-number "<:class:>" "$pinn" | sed 's|^/home/bill/web/\(.*\)\.html:[0-9]\+.*|\1|' | sort -u >>"$d_temp"'grep class.txt' +--+ bin/bin logs/fileops run commentary, overall log.html >> just leave it - I won't edit bin/fileops [nomenclature, docs].html >> class= computer bin/webSite description.html >> class= computer >> inserted space : "... template header for which <:class :> is auto-replaced ..." My sports & clubs/natural- CNS/Blair Bromley etal: papers on [thorium, transmutation of fission spent fuel].html >> class= myBlogs >> title slight change ProjMajor/Electric Universe/Kaal SAM nucleus/Kaal SAM vs QM: deactivation.html ProjMini/Kaal- Structured Atom Model/Kaal SAM vs QM: deactivation.html >> class= projmajr >> title removed 'Howell:' +--+ >> 7 files, recent webSite additions! '>> comments' above +-----+ #] search for webPageTitles with 'Howell:' "$d_bin"'webSite update local.sh' grep -i --with-filename --line-number "Howell.*" "$pinn" | sed 's|^/home/bill/web/\(.*\)\.html:[0-9]\+.*|\1.html|' | sort -u >>"$d_temp"'grep title.txt' +--+ economics, markets/[interest, exchange] rates/ Neural nets/consciousness/ Neural nets/Grossberg/ Neural nets/TrNNs_ART/ ProjMini/PuetzUWS/ webOther/Wickson website/ +--+ >> check a few: probably can simply sed the filL >> see "$d_webWork"'z_history/240122 [grep, change] webPage titles.txt' #08********08 #] 21Jan2024 pWebPageL_upload_online() a couple files renamed in function 00:03$ bash "$d_PROJECTS"'bin - secure/webSite update online lftp.sh' pWebPageL_upload_online... 00:10$ >> nice Now many links don't work, don't have time to finish those bash functions #08********08 #] 20Jan2024 after many changes : dWeb_uploadNonWebPage_online() 'webSite update online lftp.sh' must change paths : change : pWebPageL="$d_webWork"'pHtmlPathAll_L.txt' to : pWebPageL="$d_webWork"'pHtmlPathWebPage yes.txt' many changes to make : tomorrow ?? must create new dirs in "$d_PROJECTS"'webHtmlOnly/' ?? +-----+ 21Jan2024 continue fileops.sh dWeb_get_pWebPageL() : #find "$d_web" -type f -name "*.html" | grep -i --invert-match "z_Old" | grep -i --invert-match "z_Archive" | grep -i --invert-match "z_history" | sort -u >"$pAllL__769" I was missing : if [ -s "$pAllDif769" ]; then pinn_archiveLocal "$pAllDif769" fi >> OK, pAllDif769 now works pWebPageL_upload_online() - this resets all d_webOnly html to today's date? change : rsync --files-from="$pWebPageL_no_dWeb" "$d_web" "$d_webOnly" to : rsync -rltg --files-from="$pWebPageL_no_dWeb" "$d_web" "$d_webOnly" STOP - first run dWeb_uploadNonWebPage_online() 08:29$ bash "$d_PROJECTS"'bin - secure/webSite update online lftp.sh' dWeb_uploadNonWebPage_online... cat: '/home/bill/web/webWork/pHtmlPathExclL non-webPage.txt': No such file or directory ^C9.1 Giche and Catherine, magic and alchemy.png' at 115928 (7%) [Sending data] ~ >> uh-oh? no : cat: '/home/bill/web/webWork/pHtmlPathExclL non-webPage.txt': No such file or directory follow progress? example : 'yler and David Phillips - Emergent City Flyby with Colossus.ogv' 09:00$ find "$d_web" -type f -name "*.ogv" | grep 'yler and David Phillips' /home/bill/web/Neural nets/Transformer NNs/z_Archive/IllusionOfTheYear/2021 Christopher Tyler and David Phillips - Emergent City Flyby with Colossus.ogv /home/bill/web/Neural nets/Grossberg/IllusionOfTheYear/2021 Christopher Tyler and David Phillips - Emergent City Flyby with Colossus.ogv /home/bill/web/Neural nets/TrNNs_ART/IllusionOfTheYear/2021 Christopher Tyler and David Phillips - Emergent City Flyby with Colossus.ogv ~ 09:06$ resume 21:36$ bash "$d_PROJECTS"'bin - secure/webSite update online lftp.sh' dWeb_uploadNonWebPage_online... ~ 23:47$ so ~2 hours duration ************************** dWeb_uploadNonWebPage_online() - lftp re-upload webPages next --exclude-rx-from = /home/bill/web/webWork/pHtmlPathExclL [non-webPage, yes].txt LOCALDIR = /home/bill/web/ REMOTEDIR = /billhowell.ca/ 240121 21h37m starting upload non-html... 2165 lines - looks mostly like changed files? d_web has content: 59,951 items, totalling 30.1 GB so ~3% of files updated #08********08 #] 11Jan2024 fix webSite_get_links_run() get backup drive - earlier version worked.. >> couldn't find (too many changes) geany search fileops.sh >> big mishmash convert all problematic chrs? webSite_get_links -> pInnL_get_pLnkL_run not used by above? : str_get_links povr[,L]_strP_replace() don't actually want to overWrite! want parallel series : pinn[,L]_strP_replace_pTmp() just cp whole section, create parallel functions greatly reduces even more complicated conditionals, which are confusing guarantees no write-overs!! need new function Codes : qnial> seed 0.160160 0.146292 qnial> random 5 0.809121 0.892531 0.764581 0.309531 0.280201 see fileops.sh : pinnL_pStrP_replace_dOut(bolChrCd pinnL pStrP dOut) sed replace encoded (pStrP, pinnL) PROBLEM - same fnames will be over-written in dOut # www.BillHowell.ca 12Jan2024 copy-over adapted from pinn[,L]_strP_replace() version #08********08 #] 07Jan2024 update local webSite using "Live template" "$d_bin"'fileops run webSite 240107.sh' this should provide a stable record of what was done & when # $ bash "$d_bin"'fileops run webSite.sh' +-----+ 08Jan2024 dWebWork_archiveLocal # local backups of key d_webWork files dWWrkTrNN="$d_web"'Neural nets/TrNNs_ART/webWork/' pInn_archiveLocal_pDateMod "$d_webWork"'pHeader template.txt' pInn_archiveLocal_pDateMod "$dWWrkTrNN"'pHeader template TrNN.txt' ... etc >> don't specify individual files, back up entire dir!! >> dangerous both ways, much more clear as orginally defined above keep it as is "$d_bin"'fileops run webSite 240107.sh' : # webLocal_step1() - webSite LOCAL, [archive, [get, change, check]*[webPage, link]s], "$d_webWork"'pHtmlPathAll_L.txt' - don't need separate diff, just include in ran "$d_bin"'fileops run webSite 240107.sh', webLocal_step1() +-----+ 14:00$ bash "$d_bin"'fileops run webSite 240107.sh' /home/bill/web/bin/fileops.sh: line 2988: syntax error near unexpected token `-' /home/bill/web/bin/fileops.sh: line 2988: ` pWebPageL_pStrP_replaceGetBad_logCheck() - log results (mostly diffs)' /home/bill/web/bin/fileops run webSite 240107.sh: line 127: syntax error near unexpected token `else' /home/bill/web/bin/fileops run webSite 240107.sh: line 127: ` else' ~ 14:00$ bash "$d_bin"'fileops run webSite 240107.sh' webSite_get_links... grep: /home/bill/web/Neural nets/References/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/References/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/References/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 26Mar2022 Neural nets learn to program neural nets with with fast weights (1991).html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Schmidhuber 29Dec2022 Annotated history of modern AI and deep neural networks.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning_files/Scientific Integrity and the History of Deep Learning The 2021 Turing Lecture, and the 2018 Turing Award.html: binary file matches grep: /home/bill/web/Neural nets/Schmidhuber 24Sep2021 Scientific Integrity, the 2021 Turing Lecture, and the 2018 Turing Award for Deep Learning.html: binary file matches sedRvrs = "=FERH ; nsedRvrsAll = 12067 sedRvrs = '=FERH ; nsedRvrsAll = 32 sedRvrs = "=ferh ; nsedRvrsAll = 14457 sedRvrs = '=ferh ; nsedRvrsAll = 1 sedRvrs = "=CRS ; nsedRvrsAll = 177 sedRvrs = '=CRS ; nsedRvrsAll = 0 sedRvrs = "=crs ; nsedRvrsAll = 518 sedRvrs = '=crs ; nsedRvrsAll = 27 webSite_check_internalLinks... /home/bill/web/bin/fileops run webSite 240107.sh: line 167: Examples: command not found /home/bill/web/bin/fileops run webSite 240107.sh: line 169: syntax error near unexpected token `(' /home/bill/web/bin/fileops run webSite 240107.sh: line 169: `The commands’ exit status can be used in conditional commands such as if . In the following example grep will exit with zero (which means true in shell scripting) if the “search-string” is found in filename:' +-----+ dWeb_get_pWebPageL # (no args) - generate pHtmlPathAll_L of Howells webPages # pHtmlPath[All_, Excl]L.txt [all= webPage, exclude= html but not webPage] : # 21Oct2023 07Jan2024 # 157 221 # ?? 708 #| 07Jan2024 : #| 21:17$ bash "$d_bin"'fileops run webSite loPriority.sh' #| ~20 errors eg : grep: /home/bill/web/webWork/pHtmlPathExclL webPage.txt:288: Invalid range end #| I don't know what the error was, but proceed for now to save time (famous last words) +-----+ don't need, alrady done later by pWebPageL_pStrP_replaceGetBad_logCheck diff "$d_webWork"'z_Archive/pHtmlPathAll_L archive.txt' "$d_webWork"'pHtmlPathAll_L.txt' --suppress-common-lines >"$d_webWork"'pHtmlPathAll_L diff.txt' +-----] "$d_webWork"' ouch, huge numbers of [Trnns_ART, Grossberg, etc] pLnkBad.txt : 28,895 Many are simple bookmarks with no dir, #???, www.googletagmanager.com https://people.idsia.ch/~juergen 9 of these : /home/bill/web /home/bill/web /home/bill/web /home/bill/web/Sun Charvatova/Charvátová, Hejda Aug08 - html code +-----+ Failures of webSite_get_links? html - +--+ code code development overall # +--+ seems OK? Figure 2.37 Modelling method and cycle, one starts with Behavioral Data from scores or hundreds might be [:, ;] characters? mostly it's TrNNs_ART? - pull that out to! Most of the "Bad" links look good!!! why doesn't webSite_get_links work now? [:|%] or whatever? In need to convert [file, search term]? or simper fix? It HAS pulled out : http://people.idsia.ch/~juergen/deep-learning-overview.html +-----+ olde code #08********08 #] 07Jan2024 update webSite, then upload [augment, consolidate]ed "link list" file as the files involved are huge!! "$d_bin"'webSite maintenance specific files.txt' done quick checks before I use bash script to check all links : check TrNNs_ART links oops - failed initially, was missing subDirs now it's working check webPages : callerID_SNNs - seems OK MindCode - OUCH! [MindCode, MindCode2023] menu links fail! file:///home/bill/web/Neural nets/MindCode/10 Howell - MindCode Manifesto.odt noExist now : 10 Howell - MindCode Manifesto.odt change links to : MindCode webPage.html file:///home/bill/web/Neural nets/Mind2023/Mind2023 webPage.html webPage built but abandoned The NEW webPage is better than precedents! older stuff is currently retained (should be forever) for now - just fix the MindCode Menu "$d_webWork"'pMenuTopMenu.html' >> OK, that was easy! Impossible to verify links etc by hand. Use my bash scripts, first on my local machine, then on my webSite : "$d_bin"'fileops run webSite.sh' - process to update [, sub]webSites #08********08 #] 13Nov2023 FileZilla setup Site Manager lost - maybe due to update of FileZilla? seems to have run OK check pLog, [MindCode, coallerID] webPages pLogs - OK? [MindCode, callerID_SNNs] webPages updated: OK links: OK #08********08 #] 13Nov2023 bash "$d_PROJECTS"'bin - secure/lftp update entire webSite.sh' directory failure the first try - problem with USB drive connects? ... this keeps happening 2nd attempt : now updating a pile of useless files - excludes not working? dWebAll_upload_online() pExcludes="$d_webWork"'pHtmlPathExclL non-webPage.txt' +--+ /z_Archive/ /z_archive/ /z_history/ /z_Old/ /z_old/ +--+ >> is this restrictive enough?? how did I loose previous exclusions? same as 30Sep2023 nothing compared to 20Sep2023 Just start with same excludes... FileZilla - update must have lost my connection setup (arrrrgggghhhh!) /home/bill/.config/filezilla >> check this on USB backup didn't help for site manager!! (sheesh!) for now, jusr restart updload #08********08 #] 12Nov2023 fix pOvrL_pStrP_pInsert_replace() ALL webPages see also : "$d_bin"'0_test/fileops/0_fileops test notes.txt' "$d_bin"'fileops notes.txt' "$d_bin"'webSite update notes.txt' - LOCAL d_web update, notes "$d_bin"'fileops run webSite.sh' # FIX!! Google Analytics 3 header with GA4 header : # pStrP Google Analytics 4, leftover 3 fix tag.txt pOvL="$d_webWork"'pHtmlPathAll_L.txt' pStP="$d_webWork"'pStrP Google Analytics 4, leftover 3 fix tag.txt' pIns="$d_webWork"'pHeader Google Analytics 4 tag.txt' pOvrL_pStrP_pInsert_replace "$pOvL" "$pStP" "$pIns" >> GREAT! it all worked, but it was tough 08********08 #] 11Nov2023 "pStrP Google Analytics 3 tag.txt" failure to correct prodn version? nyet, that's not the reason just fix manually painful but sure... finished : Neural nets fix the restart at : "$d_web"'Personal/Challenging the dogmas.html' 08********08 #] 10Nov2023 manually fix: remove Google Analytics 3 header; add GA4 header if necessary too much work! I need a script! adapt pOvrL_pStrP_pIns_replaceLines() 08********08 #] 09Nov2023 replace Google Analytics 3 header with GA4 header : "$d_bin"'fileops run webSite.sh' : # Google Analytics 3 header with GA4 header : pOvL="$d_webWork"'pHtmlPathAll_L.txt' pStP="$d_webWork"'pStrP Google Analytics 3 tag.txt' pIns="$d_webWork"'pHeader Google Analytics 4 tag.txt' pOvrL_pStrP_pIns_replaceLines "$pOvL" "$pStP" "$pIns" 19:09$ bash "$d_bin"'fileops run webSite.sh' strt585 = endd585 = >> Nuts - I should have a pLog!! "$d_bin"'bin logs/pOvrL_pStrP_pIns_replaceLines log.txt' >> Nuts again: every webPage still retains :