This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
fuss:sh [2020/11/16 01:12] – [Generate Random Numbers in Range using awk] office | fuss:sh [2021/05/17 05:44] – [Find Plaintext Files] office | ||
---|---|---|---|
Line 814: | Line 814: | ||
</ | </ | ||
+ | ====== Ensure Newline at End of File ====== | ||
+ | |||
+ | <code bash> | ||
+ | find -name \*.txt | while read f; do tail -n1 $f | read -r _ || echo >> $f; done | ||
+ | </ | ||
+ | where: | ||
+ | * '' |