Google Interview Question

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

Interview Answers

Anonymous

Oct 3, 2019

awk can be used

Anonymous

Jun 9, 2021

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

Anonymous

Apr 6, 2022

cat file | cut -d, -f1