Possible Duplicate:
Looking for a windows equivalent of the unix tail command
Windows equivalent of the 'tail' command
I need to store the first and last 100 lines of a ginormous (multi-gigabyte) XML file. On *nix, I would simply do this:
head -n 100 foo.xml > foo.txt
tail -n 100 foo.xml >> foo.txt
How can I do the same from a Windows/DOS command prompt?
NOTE: I would prefer not to have to install anything.