Very exciting: SED can edit a file "in place"! Since before I was born, probably, LOL.
sed -i 's/[[:space:]]*$//' goals-SANITIZED-bank.txt
This strips trailing whitespace from every line.
#CLI #bash #linux #TIL