Homebrew install

Posted in Linux, Operating Systems, OSX

Say my name, er, IP address!

A quick script to read your IP address out loud using the “say” command in OS X.

Practical? Meh. Entertaining? You decide.

 

#!/bin/bash

# Pipes are fun – now read me my IP
# Use the say command, talking computers are fun
# Also, make the voice vaguely British to add credibility

ifconfig en0 | grep -Eo ‘([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}) ‘ | sed ‘s/’\\.’/ dot /g’ | say -v daniel

 

Posted in Linux, Operating Systems, OSX