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

What is a command and examples?

566


What difference between cmp and diff commands?

706


How can you see the command line history?

573


How do I delete files from command prompt?

542


What is pipe command in unix?

654






Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

784


What is the use of egrep command in unix?

613


What is the functionality of a top command?

610


What is the use of awk command in unix?

563


Enlist some filename manipulation commands in unix.

539


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

746


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:

1745


What do chmod command do?

592


What is $0 bash?

635


How do I find previous commands in unix?

581