PDA

View Full Version : [ubuntu] truncate



morris_shanna@live.com
January 29th, 2010, 06:47 PM
How do I truncate a file?

blazemore
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.