Plan 9 from Bell Labs’s /usr/web/sources/contrib/someone/root/rc/bin/arp

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# arp [/net/arp] - format /net*/arp more usefully
if (! ~ $#* 1)
	* = (/net/arp)		# default
if (test -d $1)
	* = $1^/arp		# accept just the directory name
{
	grep 'OK|WAIT' $1 | column 3 4 | grep '\.' | sort -t. +3n	# v4
	grep 'OK|WAIT' $1 | column 3 4 | grep -v '\.' | sort		# v6
} | column 2 1

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.