passing regexes across text files
Mar. 1st, 2006 03:13 pmsed 's/,.*//' file > newfilereplaced everything after the comma (and the comma) with nothing
i.e. rm the comma and eveything after it.
Take *that* you annotated update list of IP-blocks!
sed 's/,.*//' file > newfile