If we want to see first 35 lines of a file which command we
have to use?

Answer Posted / pitambar mishra

head -35 filename

awk 'NR<=35 {print}' filename

sed '35 q' filename
sed -n '1,35 p' filename

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use grep to find a file?

579


What does the md command do?

568


What is the use of the command 'ls -x chapter[1-5]' ?

659


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

638


What's a command word?

585






Explain command to view process running?

611


why metadb requires a seperate slice to create Solaris volume manager

2554


What is the use of find command in unix?

577


What are some command words?

561


Is command prompt unix?

579


Explain command to display different lines that are found when compare two files?

676


What happens when we execute a unix command?

597


What is the unix command to confirm a remote host is alive or not?

579


Are you in or at the office?

609


What is awk good for?

582