Sample Header Ad - 728x90

Is it possible to run head & use nl to number the lines?

1 vote
1 answer
599 views
When i ran head file.txt && nl file.txt it did each command in order of occurance (which makes sense). Is it possible to have the head display with numbered lines, so that this: word word word would become this: 1 word 2 word 3 word
Asked by Jonathon (13 rep)
Jan 19, 2019, 06:57 AM
Last activity: Jan 19, 2019, 08:47 AM