I have a giant .txt file I need to remove some lines from. The document is a list of aeronautical waypoints around the world, and I use it for plotting in a mapping application in my air traffic control simulator game. Every month, I download the newest file, but I always need to take out several hundred lines that refer to runways/approach points, as they clutter the results when I am searching for en route waypoints.
I have been looking for a faster and easier solution than manually doing this every month, and some searching has led me to find that I need to write a .bat file.
I am not a programmer, I am a student pilot/aviation geek, and I don't have the mental agility or free time to learn a whole language and rules for this one project, so I was hoping someone here has the know-how to assist me.
Please don't think I'm just lazy, I would love to know how to do this stuff, but I figure there are a few experts on here that would be able to do this in a flash...
The text file I am using contains lines like these, and I need to completely remove the lines that refer to runways (RWY) and approach points (APP):
KATANNING,YKNG,33420108S,117391188E,YMMM,JAR (HL),JAL (L),63 (QNH)
KATANNING RWY25 CENTRE INIT APP,KNGEB,33352776S,117562794E,YMMM,JAR (HL),JAL (L)
KEMPSEY RWY22 MISSED APP HOLD,KMPNH,31095650S,152501594E,YBBB,MNN (HL),NAA (HL),MAL A (L),MAL B (L)
KENDL,KENDL,30451914S,134063672E,YMMM,FOR (HL),OLY (L)
KERANG RWY14 FINAL APP,KERNF,35412637S,143533113E,YMMM,MUN (HL),MLE C (L)
What I'd like to end up with is a new file that has none of the irrelevant lines.
Or, more preferable is if the result of the batch created two new .txt files, one without the lines that I need to remove, and the other with only the removed lines, so that I can review it for anything that was missed. But only if it isn't too difficult.
I cannot install any third party software, as this is on my old XP pc, and needs to use native Windows capabilities.
Please let me know if you can help, or if there is some sort of crash course that would quickly enable me to get this one project accomplished.
If there is anything I can provide you with in return, feel free to ask.