Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

print first lines of file linux

With the flag -n | N, the head command prints out the first N lines of file(s)

head -n 7 file.txt	#Prints first 7 lines of file.txt
 
PREVIOUS NEXT
Tagged: #print #lines #file #linux
ADD COMMENT
Topic
Name
5+1 =