truncate should do the job.
Note that you can get the size of a file using the -s operator.
In reply to Re: How to chomp the last new line character from the file
by rovf
in thread How to chomp the last new line character from the file
by jojojo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |