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

Answer Posted / manoj kumar kar

head 51 filename|tail 1

Is This Answer Correct ?    11 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between grep and find command in unix?

575


What does the command ' $who | sort –logfile > newfile' do?

761


How can you see the command line history?

580


How do you grep recursively?

551


What is used to type command?

538






Who command in unix operating system?

656


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:

1756


Which command should you use to find the remaining disk space in unix server?

700


What is the function of grep command in unix?

580


What is the unix command to confirm a remote host is alive or not?

577


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

634


What is the nmap command?

577


What is the comma to display different lines that are found when compare two files?

591


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

627


What does grep v grep do?

546