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

cut -d’,’ -f-5 filename

Related Questions

Category: UNIX Interview Questions.