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

Answer Posted / biswa

cat <filename>|head -51|tail -1

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enumerate some of the most commonly used network commands in unix?

616


What does the command '$ls | wc –l > file1' do?

678


Who wrote grep?

579


What are filter commands in unix?

553


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 do know about tee command and its usage?

586


What is unix command?

584


How to find $ai_serual resolved path by using unix

1024


What is grep and how do you use it?

572


What is pipe command in unix?

669


How do I search for text in vi?

584


What does pipe () return?

592


How does pipe () work?

591


What is unix command line?

606


Explain command to show the space allocation of files?

629