diff --git a/notes/comparing PCs with terminal commands.md b/notes/comparing PCs with terminal commands.md index 322ed13..a055483 100644 --- a/notes/comparing PCs with terminal commands.md +++ b/notes/comparing PCs with terminal commands.md @@ -68,9 +68,9 @@ Then, I ran this command to generate a diff file to look at: echo "" > compare.html while read file; do f=$(echo "${file}" | sed 's/current\///') - git diff --no-index --word-diff "current/${f}" "new/${f}" - | sed 's/\[\-//g' | sed 's/-\]/<\/del>/g' - | sed -E 's/\{\+//g' | sed -E 's/\+\}/<\/ins>/g' + git diff --no-index --word-diff "current/${f}" "new/${f}" \ + | sed 's/\[\-//g' | sed 's/-\]/<\/del>/g' \ + | sed -E 's/\{\+//g' | sed -E 's/\+\}/<\/ins>/g' \ | sed '1s/^/
/' | sed '$a
' done <<< $(find current/ -type f) >> compare.html echo "" >> compare.html