Answers for "print first lines of file linux"

3

only show first lines linux

head -10 bar.txt
Posted by: Guest on June-13-2020
1

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
Posted by: Guest on October-19-2020

Code answers related to "print first lines of file linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language