Skip to content

Instantly share code, notes, and snippets.

@AndrewTheTM
Created January 25, 2013 15:22
Show Gist options
  • Save AndrewTheTM/4635188 to your computer and use it in GitHub Desktop.
Save AndrewTheTM/4635188 to your computer and use it in GitHub Desktop.
Gets the first and last fields from each record. Works on unequal-length records.
gawk 'BEGIN {FS=","};{print $1,",",$NF}' amPaths.csv >amOD.CSV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment