#!/bin/csh -f # Script to filter stdin to stdout, translating some known IP addresses to # meaningful names. # Without the --unbuffered option, sed buffers its output. # So when used in a pipe, it may never actually emit anything out of # the end of the pipe until the data stream ends. That's fine for # batch processes, and it's more efficient. But, it's a problem # when feeding in live data like tail -F and expecting to see output # immediately. Especially when used with other pipe elements that # buffer their output (grep, sed, others?). Until all of the buffers # of the entire pipe fill up, you get no output. And if you kill the # process with Ctrl-C (since tail -F never ends), any buffered output # is lost. sed --unbuffered \ -e "s/^159.140.252..../Cerner /" \ -e "s/^75.146.230.217/Rocky Santucci /" \ -e "s/^173.79.112.88/Ginny Pyster /" \ -e "s/^66.249.88..../Google Proxy /" \ -e "s/^66.102.8..../Google Proxy /" \ -e "s/^108.56.148.2/McEwen House /" \ -e "s/^74.105.200.79/Dave Tutelman /" \ -e "s/^192.150.115.150/Baldwin College/" \ -e "s*^100.14.108.235*Eileen/Ewald*" \ -e "s/^76.209.241.196/Mary Jane Cope /" \ -e "s/^50.232.181.218/Alexis Sloan /" \ -e "s/^108.16.216.212/Chris Whiting /" \ -e "s/^75.188.22.3/Cincy RR /" \ -e "s/^23.114.167.7/David Tao /" \ -e "s/^71.185.37.56/Jeanne Lane /" \ -e "s/^74.103.172.155/Dave Yantis /" \ -e "s/^108.24.74.28/Christian Simms/" \ -e "s/^141.151.27.211/Pavan Kumar? /" \ -e "s/^96.245.94.202/Mick Eng /" \ -e "s/^40\.94/Microsoft/" \ -e "s/^174.229.129.159/Reagan Neviska /" \ -e "s/^72.92.78.30/DiplomacyPP /" \ -e "s/^67.166.155.183/Adam Starrh /" \ -e "s/^108.2.70.39/Martin Snyder /" \ -e "s/^184.23.184.82/Brian Saunders /" \ -e "s/^70.15.135.57/Craig Farrand /" \ -e "s/^73.81.112.200/Alex Yankelevich/" \ -e "s/^71.230.27.210/Alex Yankelevich/" \ -e "s/^38.21.215.239/Stephen Cope? /" \ -e "s*^108.52.100.109*Jeff/Kelly Stluka*" \ -e "s/^155.225.248.75/John Moore /" \ -e "s/^155.225.2.100/John Moore cell/" \ -e "s/^82.217.112.42/Roy Sewall /" \ -e "s/^68.84.43.238/Julien Mills /" \ -e "s/^96.230.70.53/Charlene Bencivenga/" \ -e "s/^73.204.27.233/Dave Weiss /" \ -e "s/^71.162.139.94/Amul Shah /" \ -e "s/^73.188.175.219/Ed Schindler /" \ -e "s/^71.225.0.156/Anthony S -- Mac guru/" \ -e "s/^73.165.158.30/Donna Ronca /" \ -e "s/^73.165.119.145/Terry Walsh /" \ -e "s/^199.26.230.211/Steve Heilenman/" \ -e "s/^24.153.46.145/Bob Shank /" \ -e "s/^174.198.11.49/Bob Shank cell /" \ -e "s/^68.187.212.174/Geoff and Hilary Wilson/" \ -e "s/^75.75.25.3/Phil Hostetter /" \ -e "s/^2.27.225.116/Sarah Candy /" \ -e "s/^108.16.220.226/Dave Bartlett /" \ -e "s/^68.43.247.43/Rock Pyle /" \ -e "s/^71.225.128.139/Martin McElroy /" \ -e "s/^89.127.29.252/Axel Grude /" \ -e "s/^216.178.85.242/Horizon Services/" \ -e "s/^77.173.149.59/Ernst Wijsmuller/" \ -e "s/^108.2.56.75/Susan Murray /" \ -e "s/^98.114.93.117/Atul Patel /" \ -e "s/^73.196.66.237/Al D'Souza /" \ -e "s/^72.92.27.188/Bhaskar /" \ -e "s/^71.64.125.64/Bill Hogsett /" \ -e "s/^92.2.255.187/Oli Goldfinch /" \ -e "s/^68.81.156.31/Trish Palmer /" \ -e "s/^72.94.208.33/Ruth Bowen /" \ -e "s/^209.222.8[0-7]/Barracuda/" \ -e "s/^52.168.53.211/Sarah or Jenny /" \ -e "s/^178.226.162.66/Sarah or Jenny /" \ -e "s/^IPADDR/NAME15/" \ #-e "s*^72.92.16.150*Jeff/Kelly Stluka*" \