This sure seems simple enough, but I seem to be stuck. Each morning, via another script I get emailed a mass listing of nothing but IP address. I would like a script that takes this list, sorts the IP's according to classes, and outputs all non "c" class ip's into a new file....the sorting part is easy but I'm stuck on how to output the non "c" class IP's into another file. Any help would be greatly appreciated.