#!/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/^108.52.154.253/1011King /" \ -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/^35.134.10.84/Red Roof SoBo /" \ -e "s/^71.11.0.131/Wegmans NoBo /" \ -e "s/^73.61.122.59/Bingham /" \ -e "s/^73.4.119.237/Bircsak? /" \ -e "s/^100.0.27.80/Bircsak /" \ -e "s/^71.174.252.132/ex-Ray MarlBoro1/" \ -e "s/^173.239.214/ex-Ray1 /" \ -e "s/^173.76.231.166/ex-Ray MarlBoro2/" \ -e "s/^107.115.17.99/Cambridge MA /" \ -e "s/^168.159.213.20[24]/Steve Lathrop /" \ -e "s/^70.110.149.112/Austin Dieroff /" \ -e "s/^146.115.162.91/Jimmy Stluka /" \ -e "s/^69.53.53.103/Bennington VT /" \ -e "s*^216.66.96.208*Ausnit/Hood VT *" \ -e "s*^130.44.131.179*Ausnit/Hood MA *" \ -e "s*^68.112.229.225*Geoff/Hilary *" \ -e "s/^73.165.154.50/Matt Brophy? Philly/" \ -e "s/^100.14.107.198/Underwood /" \ -e "s/^146.75.253.15/Tommy Brophy? BellmawrNJ/" \ -e "s/^71.225.125.249/Philly Comcast 1/" \ -e "s/^71.225.149.134/Philly Comcast 2/" \ -e "s/^71.230.29.88/Philly Comcast 3/" \ -e "s/^73.30.99.174/Philly Comcast 8/" \ -e "s/^73.141.145.101/Philly Comcast 5/" \ -e "s/^73.233.231.164/Philly Comcast 6/" \ -e "s/^76.99.84.230/Philly Comcast 7/" \ -e "s/^69.253.209.132/Philly Comcast 8/" \ -e "s/^69.253.161.213/Philly Comcast 9/" \ -e "s/^104.28.76.126/Philly CloudFlare/" \ -e "s/^172.56.217.80/Philly T-Mobile 1/" \ -e "s/^172.56.216.103/Philly T-Mobile 2/" \ -e "s/^172.56.222.14/Philly T-Mobile 3/" \ -e "s/^172.56.29.102/Philly T-Mobile 4/" \ -e "s/^172.56.220.78/Philly T-Mobile 5/" \ -e "s/^174.240.211.159/Philly iPhone /" \ -e "s/^174.219.51.115/Philly VZW /" \ -e "s/^52.247.61.136/Boydton VA /" \ -e "s/^216.103.15.48/New Castle DE /" \ -e "s/^71.163.17.12/Olney MD /" \ -e "s/^108.2.65.70/Mike Stevens /" \ -e "s/^69.255.99.104/Atul Patel /" \ -e "s/^173.48.213.193/Kathryn Welter /" \ -e "s/^100.14.66.223/West Chester PA FIOS 1/" \ -e "s/^100.14.121.141/West Chester PA FIOS 2/" \ -e "s/^100.34.214.43/Exton PA FIOS 1/" \ -e "s/^108.52.100.193/Exton PA FIOS 2/" \ -e "s/^104.129.41.213/Miami FL /" \ -e "s/^104.28.76.231/DC 1 /" \ -e "s/^104.28.76.240/DC 2 /" \ -e "s/^108.18.115.48/Bethesda MD /" \ -e "s/^108.2.65.221/Malvern FIOS 1 /" \ -e "s/^108.36.235.199/Malvern FIOS 2 /" \ -e "s/^108.36.235.25/Malvern FIOS 3 /" \ -e "s/^108.52.98.51/Malvern FIOS 4 /" \ -e "s/^141.151.3.105/Malvern FIOS 5 /" \ -e "s/^71.162.135.93/Malvern FIOS 6 /" \ -e "s/^71.162.213.38/Malvern FIOS 7 /" \ -e "s/^71.162.243.192/Malvern FIOS 8 /" \ -e "s/^70.110.150.26/Malvern FIOS 9 /" \ -e "s/^72.78.184.101/Malvern FIOS 10/" \ -e "s/^72.78.74.223/Malvern FIOS 11 (Mayor Pete?)/" \ -e "s/^96.227.114.177/Malvern FIOS 12/" \ -e "s/^108.2.65.46/Malvern FIOS 13/" \ -e "s/^108.25.81.103/Cape May NJ /" \ -e "s/^108.52.167.101/Phoenixville PA FIOS 1/" \ -e "s/^68.238.235.228/Phoenixville PA FIOS 2/" \ -e "s/^108.16.192.204/Phoenixville PA FIOS 3/" \ -e "s/^13.64.229.66/San Jose CA /" \ -e "s/^174.195.85.91/San Jose CA VZW/" \ -e "s/^107.142.38.247/San Bruno CA SBC/" \ -e "s/^146.75.164.216/Austin TX /" \ -e "s/^173.252/Facebook 173.252/" \ -e "s/^31.13/Facebook 31.13/" \ -e "s/^69.171.2[2345]/Facebook 69.171.2x/" \ -e "s/^69.63.1[789]/Facebook 69.63.1x/" \ -e "s/^192.232.16.69/Google Cache OH/" \ -e "s/^66.60.182.68/Google Cache CA/" \ -e "s/^194.33.45.115/NYC 1 /" \ -e "s/^185.199.102.191/NYC 2 /" \ -e "s/^92.119.177.92/NYC 3 /" \ -e "s/^45.19.209.70/Ormond Beach FL/" \ -e "s/^50.216.39.6/Parkesburg PA /" \ -e "s/^65.24.197.242/Logan OH Charter/" \ -e "s/^66.249.83/Google Proxy Charlotte NC/" \ -e "s/^69.255.47.85/Reston VA /" \ -e "s/^70.16.209.119/Farmington ME /" \ -e "s/^71.191.184.183/Arlington VA /" \ -e "s/^74.109.115.57/West Grove PA FIOS 1/" \ -e "s/^173.49.46.16/West Grove PA FIOS 2/" \ -e "s/^74.109.15.116/Radnor PA /" \ -e "s/^98.111.190.241/Thorndale PA FIOS/" \ -e "s/^98.111.184.252/Downingtown PA FIOS 1/" \ -e "s/^98.111.191.69/Downingtown PA FIOS 2/" \ -e "s/^96.245.60.48/Downingtown PA FIOS 3/" \ -e "s/^108.52.97.224/Downingtown MAGAt Dawn Keffer/" \ -e "s/^212.103.49.7/Los Angeles CA /" \ -e "s/^172.191.139.204/MS Ashburn VA /" \ -e "s/^73.10.103.226/Sicklerville NJ/" \ -e "s/^172.58.111.161/Dallas TX T-Mobile/" \ -e "s/^84.87.171.92/Holland /" \ -e "s/^71.255.107.14/Eagleview PA 1 /" \ -e "s/^108.16.46.212/Eagleview PA 2 /" \ -e "s/^69.59.197.165/Corvallis OR /" \ -e "s/^68.47.127.89/Hugo MN /" \ -e "s/^3.82.141.11/AWS 1 /" \ -e "s/^104.207.32.222/Toronto CAN /" \ -e "s/^64.62.202.79/San Jose CA /" \ -e "s/^34.148.153.233/N Charleston SC/" \ -e "s/^156.228.92.219/AFRINIC Auburn VA/" \ -e "s/^65.21.226.48/Helsinki FIN 1 /" \ -e "s/^65.21.44.205/Helsinki FIN 2 /" \ -e "s/^104.2.85.193/Rancho Santa Fe CA/" \ -e "s/^100.14.115.153/West Chester PA 1/" \ -e "s/^100.14.108.212/West Chester PA 2/" \ -e "s/^174.181.30.6/Franklin Park PA/" \ -e "s/^24.16.172.57/Bremerton WA /" \ -e "s/^68.33.159.234/Elkton MD /" \ -e "s/^31.121.88.114/Ely UK /" \ -e "s/^66.60.182.71/Sacramento CA /" \ -e "s/^68.216.63.63/Harrisburg PA /" \ -e "s/^73.153.52.158/Thornton CO Comcast/" \ -e "s/^72.240.108.38/Toledo OH Buckeye 1/" \ -e "s/^72.241.42.193/Toledo OH Buckeye 2/" \ -e "s/^173.49.74.45/Evansburg PA /" \ -e "s/^174.198.200.197/Toms River NJ VZW/" \ -e "s/^174.185.220.101.10/Berlin Germany /" \ -e "s/^76.217.247.37/Tristan Neviska/" \ -e "s/^73.81.18.55/Judy Bianchi /" \ -e "s*^108.45.51.196*Gina/Glen *" \ -e "s/^206.251.45.50/Danny /" \ #-e "s/^xxx/xxx /" \ #-e "s/^xxx/xxx /" \ #-e "s/^xxx/xxx /" \ #-e "s*^72.92.16.150*Jeff/Kelly Stluka*" \