To crop the last n Bytes from a file you can use the truncate command.
[u_r_the_man@TESTBOX ~]$ truncate --size=-n <filename>
Where n represents the number of Bytes to cut from the end of <filename>. The advantage is that the command will cut the bytes straight from the file so you don’t have to redirect the output of a command (e.g. cut) to another file.
A Quote from qotd.org
Parents rarely let go of their children, so children let go of them.
Mitch AlbomArchives
- September 2017
- June 2017
- February 2017
- June 2016
- December 2015
- September 2015
- July 2015
- June 2015
- January 2015
- November 2014
- August 2014
- June 2014
- May 2014
- April 2014
- February 2014
- January 2014
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- February 2013
- January 2013
- November 2012
- August 2012
- June 2012
- February 2012
- January 2012
- December 2011
UserOnline
Recent comments