View Full Version : [ubuntu] truncate
January 29th, 2010, 06:47 PM
How do I truncate a file?
January 29th, 2010, 06:50 PM
Do you mean take the first few lines?
head -n 10 original.txt > truncated.txt
will give you the first 10 lines.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.