Write a command to duplicate each line in a file?

sed ‘p’ < filename

Category: UNIX Interview Questions.