Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    That's almost too clever, the only thing that makes it work is somewhat easy to miss. I think you'd still need to anchor the start of the string. Commented Jan 8, 2018 at 22:15
  • I would vote this up multiple times if I could. I didn't understand how it could work, didn't catch the trick until I pasted into an xterm to test, and started to replace $mac_address with a literal, then I saw it. Commented Feb 8, 2018 at 12:17