To convert from dos
to unix
format, run:
dos2unix <file>
This fixes issues with CRLF line terminators.
find . -type f -not -path "*/.git/*" -exec sed -i "s/ \+$//g" {} +
The -not -path "*/.git/*"
is to prevent sed from mangling the git history if
present.
To watch the contents of a text file, for example a log file, for newly appended data, run:
tail -f <log file>