 <p>You want:</p> <pre><code>awk -F"-" '{ print $3 }' </code></pre> <p>With <code>-F</code> you specify the delimiter. In this case, <code>-</code>. The version number is the third field, so that's why you need <code>$3</code>.</p>