The fields in each line are delimited by comma. Write a command to display third field from each line of a file?

cut -d’,’ -f2 filename

Category: UNIX Interview Questions.