How do I print the first line of a file in Unix?

Man Ly

New member
How do I print the first line of a file in Unix?
Answer
1. The default command which comes to our mind is
the head command.head with the option “-1” displays the first line.
 

Tìm kiếm

Back
Top