Answers for "how to display specific lines from a file in linux"

4

find how many lines in a file linux

wc -l <filename>
Posted by: Guest on March-05-2021
0

how to display specific lines from a file in linux

Write a bash script to print a particular line from a file:

awk = $ awk '{if(NR==LINE_NUMBER) print $0}' file.txt
sed = $ sed -n LINE_NUMBERp file.txt
Posted by: Guest on May-15-2022

Code answers related to "how to display specific lines from a file in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language