Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 510 Bytes

text.md

File metadata and controls

29 lines (19 loc) · 510 Bytes

Text

Convert DOS to Unix format

To convert from dos to unix format, run:

dos2unix <file>

This fixes issues with CRLF line terminators.

Remove trailing whitespace from all files

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.

Watch files

To watch the contents of a text file, for example a log file, for newly appended data, run:

tail -f <log file>