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

How many bits use for MAC address?

7 Answers   Google,


What is the use of finger command?

1 Answers  


How to display no of records in oracle using unix command?

1 Answers  


How to get the operating system's information in unix?

6 Answers   IBM, TCS,


What does 'mkdir' command do in UNIX?

1 Answers   Syntel, Visa,


distinguish between paging and swapping?

3 Answers   Infosys,


in unix echo is used for

10 Answers   BFL, BirlaSoft, Patni,


How do you list the files in an UNIX directory while also showing hidden files?

6 Answers  


in UNIX,How to copy file into directory?

5 Answers  


how to sort the content of the file based on numeric values

1 Answers   Epsilon,


What are the dos commands?

1 Answers  


What are filter commands in unix?

1 Answers  


Categories