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

Answers were Sorted based on User's Feedback



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

Answer / jsdkar

head -35 filename

Is This Answer Correct ?    35 Yes 0 No

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

Answer / ranjan

sed -n'1,35 p' filename

or

head -35 filename

Is This Answer Correct ?    7 Yes 0 No

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

Answer / sowmya

head -35 filename

Is This Answer Correct ?    6 Yes 3 No

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

Answer / umesh

cat filename | head -35

Is This Answer Correct ?    3 Yes 0 No

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

Answer / 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

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

Answer / siri

sed -n '1,35p' filename;
head -35 filename;

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sujata

sed -n'35' p filenmae;

Is This Answer Correct ?    4 Yes 5 No

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

Answer / rajesh mallick(cap)

pr -35 filename

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More Unix Commands Interview Questions

What is clustering in HP and how it's work?

1 Answers   HP,


What do chown command do?

0 Answers  


What is the syntax of grep command and what is its use?

6 Answers  


in UNIX,what is the command to remove directory with files?

10 Answers  


Explain ‘system calls’ with respect to unix commands?

0 Answers  






why unix operating system provides more security than other operating systems?

4 Answers  


what does the 'tee' command do?

4 Answers  


what are the differences between CUI and GUI interfaces?

52 Answers   College School Exams Tests, HCL, HP, IBM, IBMR, NIIT, Talco, Wipro,


What is $0 bash?

0 Answers  


What does awk stand for?

0 Answers  


what is the use of the hidden files?

3 Answers  


What is sed awk grep?

0 Answers  


Categories