title: awk - how to delete first column with field separator
body: <p>I have a csv file with data presented as follows</p>
  
  <pre><code>87540221|1356438283301|1356438284971|1356438292151697
  87540258|1356438283301|1356438284971|1356438292151697
  87549647|1356438283301|1356438284971|1356438292151697
  </code></pre>
  
  <p>I'm trying to save the first column to a new file (without field separator , and then delete the first column from the main csv file along with the first field separator.</p>
  
  <p>Any ideas? </p>
  
  <p>This is what I have tried so far</p>
  
  <pre><code>awk 'BEGIN{FS=OFS="|"}{$1="";sub("|,"")}1'
  </code></pre>
  
  <p>but it doesn't work </p>