title: Is there any better way to get mac address from arp table?
body: <p>I want to get a mac address from arp table by using ip address. Currently I am using this command</p>
  
  <pre><code>arp -a $ipAddress | awk '{print $4}'
  </code></pre>
  
  <p>This command prints what I want. But I am not comfortable with it and I wonder if there is any built-in way or more stable way to do this.  </p>