How to remove the last newline character in a unix file April 27, 2017 How to remove the last newline character in a unix file truncate -s -1 <file> eg. shop&save Read more