Closed tbenthompson closed 2 years ago
# Step 0: grab a clean checkout/clone/worktree. # Step 1: open vscode and search and replace case sensitive: # - kevlar -> imprint # - Kevlar -> Imprint # - KEVLAR -> IMPRINT # Step 2: Move some top level directories for file in *kevlar*; do git mv "$file" "${file//kevlar/imprint}" done # Step 3: Recursively move all files and folders. (This probably means the above command was unnecessary.) # Modified from https://unix.stackexchange.com/questions/416018/how-to-replace-a-string-in-all-folder-and-file-names?noredirect=1&lq=1 find . -name "*kevlar*" -print0 | while read -r -d '' file; do git mv "$file" "${file//kevlar/imprint}" done # Step 4: check your work. Both commands should return nothing: grep -r "kevlar" ./ find . -name "*kevlar*"
End of an era