This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fuss:sh [2020/02/14 17:12] – [Copyright] office | fuss:sh [2021/06/03 16:10] – [Copyright] office | ||
---|---|---|---|
Line 14: | Line 14: | ||
<code bash> | <code bash> | ||
########################################################################### | ########################################################################### | ||
- | ## Copyright (C) Wizardry and Steamworks | + | ## Copyright (C) Wizardry and Steamworks |
## Please see: http:// | ## Please see: http:// | ||
## rights of fair usage, the disclaimer and warranty conditions. | ## rights of fair usage, the disclaimer and warranty conditions. | ||
Line 495: | Line 495: | ||
===== For ZIP ==== | ===== For ZIP ==== | ||
+ | |||
+ | Using parallel: | ||
+ | |||
+ | <code bash> | ||
+ | find . -iname ' | ||
+ | </ | ||
+ | |||
+ | and without parallel: | ||
<code bash> | <code bash> | ||
- | find . -name ' | + | find . -iname ' |
</ | </ | ||
Line 800: | Line 808: | ||
* '' | * '' | ||
+ | ====== Find Plaintext Files ====== | ||
+ | |||
+ | <code bash> | ||
+ | find . -type f -exec grep -Iq . {} \; -print | ||
+ | </ | ||
+ | |||
+ | ====== Ensure Newline at End of File ====== | ||
+ | |||
+ | <code bash> | ||
+ | find -name \*.txt | while read f; do tail -n1 $f | read -r _ || echo >> $f; done | ||
+ | </ | ||
+ | where: | ||
+ | * '' |