in a growing log file how will you see the 1st 99 lines?

Answers were Sorted based on User's Feedback



in a growing log file how will you see the 1st 99 lines?..

Answer / sonali

head -99 <file name> - display 1 st 99 lines
tail -99 <file name> - display last 99 lines

Is This Answer Correct ?    20 Yes 2 No

in a growing log file how will you see the 1st 99 lines?..

Answer / anandthks

head -99 <filename> will give 1st 99 lines

Is This Answer Correct ?    12 Yes 3 No

in a growing log file how will you see the 1st 99 lines?..

Answer / anshul basra

$ head -99 <filename> will show first 99lines of that file.

Is This Answer Correct ?    7 Yes 0 No

in a growing log file how will you see the 1st 99 lines?..

Answer / kiruthiga.s

Syntax:
head -99 file name
if file name is test1.txt
Example:
head -99 test1.txt

Is This Answer Correct ?    4 Yes 0 No

in a growing log file how will you see the 1st 99 lines?..

Answer / dinesh babu

sed -n '1,99p' filename

Is This Answer Correct ?    4 Yes 1 No

in a growing log file how will you see the 1st 99 lines?..

Answer / dibya lochan giri

to see the last 99 lines in a log file you can use the cmd
$ tail -99f <file name>

Is This Answer Correct ?    9 Yes 7 No

in a growing log file how will you see the 1st 99 lines?..

Answer / dibyalochangiri

ans-using cmd $tail -99f <log file name>

Is This Answer Correct ?    5 Yes 11 No

Post New Answer

More Unix Commands Interview Questions

Who command in unix operating system?

0 Answers  


How do you find out all processes that are currently running in UNIX OS?

10 Answers  


How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?

4 Answers   HCL, Wipro,


What is the protocol for PING command?

1 Answers   IBM,


How to convert a hidden file to normal visible file?

8 Answers  






What is difference between grep and find command in unix?

0 Answers  


when we installing aix os the ssh installed default?

2 Answers  


How do you copy a directory with many files and folders into another directory?

2 Answers  


what is mount ,tell me about mount ,how can u use in real time project??

12 Answers   Symphony,


why metadb requires a seperate slice to create Solaris volume manager

0 Answers   Wipro,


What command will bring user back to their home directory in UNIX?

13 Answers   IBM, Wipro,


How to remove a crontab file?

2 Answers  


Categories