TraceMAC is a command-line Layer 2 traceroute for Cisco switches
TraceMAC is a Windows/Linux command-line tool that allows you to trace a specific MAC address thru Cisco switches.
It works by connecting to a switch using SSH, SNMP, Telnet, HTTP or HTTPS and do some "show commands" and later process the output, this will happen recursively until it finds the switch where that MAC address (PC/Printer/Etc) is directly connected.
Note: It works with Cisco switches only and you must have CDP enabled at least on trunks/links between switches!
Is tested...
dpkglist.awk is a command-line tool for querying available packages on ubuntu and debian systems. It overlaps with the standard apt-cache utility, but, written in simple awk, it is easily extensible, and makes it easy to write one-line scripts.