Well, assuming you know Unix scripting and have 2000 or XP, try installing Windows Services for Unix 3.5. Unix is excellent for file manipulation, especially the awk command.