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 the difference between relative path and absolute path?

7 Answers  


What does 'mkdir' command do in UNIX?

0 Answers   Syntel, Visa,


which command is used to identify the type of the file?

3 Answers  


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

0 Answers  


in UNIX,How to copy file into directory?

5 Answers  






How does shebang work?

0 Answers  


How do I delete files from command prompt?

0 Answers  


How do you repeat a command in terminal?

0 Answers  


what do you understand bythe term 'de-mountable volumes'?

2 Answers   Infosys,


Explain how to use grep command to list find the records of a file containing 10 different strings?

0 Answers  


What is the functionality of a top command?

0 Answers   Amazon,


How do I use grep to search for a file?

0 Answers  


Categories