in reply to How to chomp the last new line character from the file

truncate should do the job.

Note that you can get the size of a file using the -s operator.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re: How to chomp the last new line character from the file
by ww (Archbishop) on Nov 24, 2011 at 13:04 UTC