Google interview question

Linux: view a column in the csv in the command line

Interview Answers

Anonymous

3 Oct 2019

awk can be used

Anonymous

9 Jun 2021

awk -F, '{print $1}' or cut -d, -f1 (replace '1' w/ desired column number(s))

Anonymous

6 Apr 2022

cat file | cut -d, -f1