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

Answer Posted / supriya

head -51|tail -1 <filename>

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use nslookup?

572


Is it inbetween or in between?

578


What do know about tee command and its usage?

586


Which unix command to make a new directory?

587


How does pipe () work?

591






What is the first character of the output in ls l command?

629


How can you see the command line history?

582


Which command is used to find whether the system is 32 bit or 64 bit?

631


What is grep command in unix with examples?

604


Which command is used to restrict incoming messages?

592


Write a command to kill the last background job?

618


What is grep r?

591


What is {} in find command?

581


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1758


what is the advaantage of each user having its own copy of the shell?

2034