Write a command to print the first 5 fields from each line?

cut -d’,’ -f-5 filename

Category: UNIX Interview Questions.