Horje
command to display the 3rd line of a file Code Example
command to display the 3rd line of a file
# Take the last line of the top three lines 
head -n 3 my.txt | tail -n 1 
 
# Tell sed to "be quiet", and print just the third line 
sed -n 3p my.txt 
 
# Tell sed to delete everything except the third line 
sed '3!d' my.txt 
 
# Tell awk to print the third input record of the current file 
awk 'FNR==3 {print}' my.txt




Shell

Related
fatal: failed to install gitlab-runner: service gitlab-runner already exists Code Example fatal: failed to install gitlab-runner: service gitlab-runner already exists Code Example
apt install from file Code Example apt install from file Code Example
remove home partition centos 6 Code Example remove home partition centos 6 Code Example
ubuntu useradd Code Example ubuntu useradd Code Example
react-konva github Code Example react-konva github Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9