grep -R (recurse through subdirectories)
grep -i (Case insensitive)
grep -e (extended regex, allows for regex modifiers)
grep -l (only returns file name)
grep -Rle 'aligne\b' | xargs sed -d '\n' -i 's/aligne\b/align/'g
# search for the string 'aligne' (don't returns strings like 'aligned')
# pass all files that have said string to xargs which quickly processes
# sed (with the -i flag to process in place)
How to cat and sed together?
https://unix.stackexchange.com/questions/422005/how-to-cat-and-sed-together
This will print the diff,
then grep all lines that start with '+' and a letter or number (needs other conditions as well
the truncates the '+' of the beginning of the result
copies everything to the buffer
git show | grep '^+[a-zA-Z0-9]' | cut -c 2- | pbcopygit show -n 5 | grep '^+[a-zA-Z0-9]' | cut -c 2- >>find . -name "*" -not -name "*.ts" -not -name "*.qm" -not -name "*.po" -not -name "*.fcstd" -not -name "*.FCStd" -not -name "*.brep" -not -name "*.pdf" -not -name "*.ttf" -not -name "*.svg" -not -name "*.png" -not -name "*.sif" -not -name "*.frd" -not -name "*.jt" -not -name "*.inp" -not -name "*.stp" -not -name "*.dxf" -not -name "*.zip" -not -name "*.zip" -not -type d -not -path "./src/3rdParty/*" -not -path "./src/Gui/Quarter/*" -not -path "./src/Mod/AddonManager/Resources/licenses/*" -not -path "./src/Mod/Path/libarea/*" -not -path "./src/Mod/Robot/*" -not -path "./src/WindowsInstaller/*" -not -path "./src/Mod/Import/App/SCL/*" -not -path "./src/Mod/Import/App/automotive_design.py" -not -path "./src/Base/StackWalker.h" | xargs grep -E ".* +$"
find . -type f \
! -name "*.ts" \
! -name "*.qm" \
! -name "*.po" \
! -name "*.fcstd" \
! -name "*.FCStd" \
! -name "*.brep" \
! -name "*.pdf" \
! -name "*.ttf" \
! -name "*.svg" \
! -name "*.png" \
! -name "*.sif" \
! -name "*.frd" \
! -name "*.jt" \
! -name "*.inp" \
! -name "*.stp" \
! -name "*.dxf" \
! -name "*.zip" \
! -name "*.patch" \
! -path "./src/3rdParty/*" \
! -path "./src/Gui/Quarter/*" \
! -path "./src/Mod/AddonManager/Resources/licenses/*" \
! -path "./src/Mod/Path/libarea/*" \
! -path "./src/Mod/Robot/*" \
! -path "./src/WindowsInstaller/*" \
! -path "./src/Mod/Import/App/SCL/*" \
! -path "./src/Mod/Import/App/automotive_design.py" \
! -path "./src/Base/StackWalker.h" \
! -path "./src/CXX/*" \
! -path "./src/Gui/lex.SelectionFilter.c" \
! -path "./src/App/lex.ExpressionParser.c" \
! -path "./src/Gui/SelectionFilter.tab.c" \
! -path "./src/App/Expression.lex.c" \
! -path "./src/Gui/Selection/SelectionFilter.lex.cpp" \
-exec grep -Iq . {} \; -print0 | xargs -0 grep -nH -E ".* +$".*Copyright \(c\) [^\d\d\d\d]
codespell -D dictionary_all.txt -I ./.github/codespellignore -q 3 -S *.po,*ts,./src/3rdParty,./dictionary_all.txt,./src/WindowsInstaller,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/ifc4.py,./src/Mod/Import/App/ifc2x3.py,./src/Mod/Import/App/automotive_design.py,./src/Mod/Import/App/SCL,./src/App/lex.ExpressionParser.c,./src/Base/QuantityLexer.c,./src/Base/StackWalker.cpp -L aa,addon,ae,aes,amin,ang,anobject,assertin,att,attribs,aview,bbegin,bblock,byteorder,bv,cas,ccomment,comf,commandline,connecticon,clu,cvs,dat,datafile,dialogbox,documentt,dof,eend,eerror,eg,errorstring,estart,ffield,ffirst,fil,fred,guid,gut,heightend,iff,ii,iindex,iinterface,iitem,il,im,indice,indx,innerfaces,irow,iss,itt,lama,llayout,llist,layouth,lo,los,materiallist,mmode,modulus,mpoint,nol,nul,nullpointer,originat,parens,poisson,popup,popups,postprocessor,postprocessors,pparent,ppath,ppoint,ppoints,principal,prov,removee,ro,sels,setf,sinc,sstring,sstyles,statics,stran,storey,storeys,svalues,symbolfile,technic,tempset,tok,tol,tot,typ,typs,uint,und,unittestsuv,uv,vals,vvertices,wo,ww,work-around,re-use,multi-dimensional | more