Skip to content

Instantly share code, notes, and snippets.

@YakDriver
Created February 22, 2018 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YakDriver/2ee3ace813072dfeafc8f35470a7251d to your computer and use it in GitHub Desktop.
Save YakDriver/2ee3ace813072dfeafc8f35470a7251d to your computer and use it in GitHub Desktop.
Extract node portion of UUID, bash
$uuid = 'some-name-or-urn:8754258d-506d-e094-d51d-e0a0d891fe08' #16 octets, 10-15 are the node
$node = $(echo $uuid | cut -d':' -f 2 | cut -d'-' -f 5)
echo $node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment