title: Trim Leading and trailing Spaces in Awk
body: <p>I have a file which contains 1 line like below </p>
  
  <pre><code> VINOTH                                                                                    |KARTHICK                                                                                       |RAVI
  </code></pre>
  
  <p>I'm using the below command to remove the leading and trailing spaces , but it's not not working. </p>
  
  <pre><code>awk '{ gsub(/^[ \t]+|[ \t]+$/, ""); print }' Input_File
  </code></pre>
  
  <p>Please help.</p>
  
  <p>Required Output.</p>
  
  <pre><code>VINOTH|KARTHICK|RAVI
  </code></pre>