fyi: you can shorten ""ip link set $device up"" to "ip l s $device up"
(same for all ip commands, e.g. "ip address" can be shortened to "ip addr" or simply "ip a")
To be honest, I didn't even know "addr" was short for address. When I was first taught iproute2 in 2007, I was told that the command was "ip addr" (and I'm fairly sure the very first iproute2 command I ever typed was "ip addr show").