Extract the second and fourth columns from a CSV file

csvtool

  • Utility to filter and extract data from CSV formatted sources.
    More information: <https://github.com/maroofi/csvtool>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

csvtool --column {{2,4}} {{path/to/file.csv}}

click the source code to copy install csvtool on any operating system with command-not-found.com