# # ********************* # $ bash "$d_fileops"'fileops run.sh' - run specific cases of fileops.sh functions # +-----+ # coding tools # test_output #(standrd result) # code_get #(no args) [symbol, function] codes: list all being used # to check against new random codes # code_make #(fractionSeed) new [symbol, function]s: generate [new, unique] code # fNdfL_subDirRef_argOrderNum_dout_run #() extract list of uses of each of pthOptrNamL # fSrc_pStrUse_appendTo_pSrcChk_run #() redistributes strUse from-str-to-Src basis # dir_fextn_pthLExclud_findPthL_pout_run #() find str in files with fextn in dir, results to pout # dirSrc_fbase_fxtn_str_appendTo_pStrUse_run #() append list of uses of optrNam # +-----+ # [pth, dir] tools # pth_get_dir_run #(pth) retrieve dir holding pth, dir must exist or error # pth_get_dArchive_run #(pth) returns dArc for pth # pth_get_pArcDate_run #(pth) of form "$dArc$fNoX archive.$fExt", creates dArc if required # pth_get_pArcArch_run #(pth) returns pArc for pth, or 0 for error, assuming archive is dated # +-----+ # archive [fil, dir]s # pinn_archiveLocal_run #(pInn) normal backup of form "$dArc$fNam archive.$fext" # wrkSpcL_arcArch #() easy backup of many workSpaces # pthL_fsizCompare_optr_process_run #(pth fsizeCompare optr)optr pthL based on fSizes (bytes) # pinn_timeModTo_timeUnix_run #(tMod) for lftp uploads, mods only when file [change, update]d?? # pSortedL_rename_as_intL_run #() required by ffmpeg to produce video from pImages @ same format # pMain_strPthStrt_put_pOut_run #(strPthStrt, pMain, pOut) replace line strPthStrt with pOut # strPth must not use ANY "sed delimiters", eg strPth "#|pth " will ruin 's|||' # pinnL_pSedExpL_get_povr_run_bag #(dWork pinnL povr p_log) find sedExpr quotes in pinnL # +-----+ # pinnL mv (rename) according to [fNameOld, fNameNew, # pinnL_pSedExpL_get_povr_run #(dWork pinnL povr p_log) find sedExpr quotes in pinnL # pinn_pOld_pNew_replace_run #() test code only, don't use normally! ??? where is ndf? # pinnL_pOldNewPL_replace_run #() ??? where is ndf? # +-----+ # [extract, replace] strings in pinnL # pinnL_str_extractPthLWithStr_pout_run #() grep 'st' --with-file-name, lineNum # pinnL_pStrL_getPthsWithOUTstrL_pout_run #() paths of pinnL withOUT str # pinnL_str_extractCountPathsWithStrTo_pout_run #() txtLines with str of pinnL # povrL_pStrP_replace_run #(bolArXiv bolChrCd povrL pStrP) sed replace encoded (pStrP, povrL) # dOvrL_pStrP_replace_run #(bolArXiv bolChrCd dOvrL pStrP) sed replace encoded pStrP in dOvrL # normally set [bolArXiv, bolChrCd] both = 1 to ensure [z_Archive, character encoding] # WARNING! all pStrP cannot have \t other than to separate! # +-----+ # lines - [extract, replace] * [line sequence, [func, optr] name]s] # pinn_getLinseq_povr_run #(pinn, povr) extract a sequence of lines between [strt, endd] markers # default use of ["^#strt:","^#endd:"]=[strt, endd] markers in pTxt (don't use <> etc!!!) # for now assumes only 1 [strt, endd] # pQndfCoreL_pOptrNamPL_replace_run #() pre-setup of povrL_pStrPL_replace # transcript_unite_nLines_run #(no args) keep timestamp each n lines of transcript # transcript_unite_each_paragraph_run #(no args) reformat [audio, video] transcripts (eg YouTube) # +-----+ # notes files: # pNotes_str_get_dateBefore_StrLine_dateAfter_run() # +-----+ # '* run.sh' files - un-comment (rm '#] '] of function description, then # which are the "active lines" that will be run? doesn't work 100% # +-----+ # links to other funcs elsewhere # htmlHeadings_to_TblOfContents: see "$d_bin"'webLocal/webLocal [find, fix, create] normal details.sh' # +-----+ # run - select one of options # codes: for symbols [global, local, function] to ensure other functions won't inadvertantly change values