I have a 150GB xml file that I would like to shorten (ie truncate) to about 1GB - is there a simple (bash or similar) command I can use, or do I have to go the programmatic route (editing it in vi or emacs is a nightmare even on big iron systems)?
(I am not particlarly concerned about the loss of information, I want a shorter file so I can test a piece of software on this and not wait many hours for the answer, a shorter file will allow me to do that.)