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

Is ‘du’ a command? If so, what is its use?

0 Answers  


hw will u use awk in replacing cahrs and files

0 Answers  


What is the difference between cat and more command?

0 Answers  


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


what do you understand by 'building block primitive'?

0 Answers   Infosys,






Differentiate cmp command from diff command.

0 Answers  


what is shell?

5 Answers  


How do you execute a UNIX command in the background?

6 Answers  


boot process?

2 Answers   Atos Origin, Wipro,


What are the dos commands?

0 Answers  


how to find the 51th record of a file containing 100 records in unix.

12 Answers   IBM,


How to convert a hidden file to normal visible file?

8 Answers  


Categories