This simple one-liner allows conversion of an IP address from decimal to binary. I came up with this after playing around with cut and grep. [email protected] ~/Documents $ ipcalc 172.18.31.2 | grep Address | cut -b 33-68 10101100.00010010.00011111. [email protected] ~/Documents $ ipcalc 172.18.31.2 | grep Address | cut -b 33-68 10101100.00010010.00011111. 00000010 The -b parameter …