Also it's really cool that whenever I have a thought to write here,
Instead of opening a tab in the browser and wait for it to load and everything,
I can just write toot post in my terminal, write my toot and send it.
It's so simple and I love itttt :hearteyes: #toot#linux#terminal
Okay, so. I have a #PDF and a #DOCX file. And I’d like to compare them. And since I’m a programmer, I don’t want to compare them visually, but with a #diff. But how?
Like this.
alias pdfcat='gs -q -sDEVICE=txtwrite -o-'
alias doccat='pandoc -t plain'
pdfcat a.pdf > a.txt
doccat b.docx > b.txt
git diff --no-index --word-diff a.txt b.txt
And since we’re using --word-diff, it doesn’t matter that the two files use wildly different line wrapping.