Truncate a file: Difference between revisions

Line 658:
 
----
<lang bash>## Pure bourne-shell approach (cross-OS, no truncate(1) binary required)
<lang bash>
 
# 1. simplest one-liner
echo -n>file
Line 730:
abc+ echo _EOF_
_EOF_
# bonus: use a seek and append and add truncate(1) syntax w/ units - short one-liners pleaseliner
</lang>
 
 
=={{header|ZX Spectrum Basic}}==
Anonymous user