how to find the 51th record of a file containing 100 records
in unix.
Answers were Sorted based on User's Feedback
Answer / sundar octavious
head -51 <filename> |tail -1
The above command will display the answer.
| Is This Answer Correct ? | 33 Yes | 1 No |
What is used to type command?
What is clustering in HP and how it's work?
What do chgrp command do?
describe the escaping sequence characteres in unix
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<stdlib.h> # include <stdio.h> 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:
What is nr in awk command?
distinguish between user mode and kernel mode?
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?
How would you find the size of a file or directory?
What is the use of touch command in there?
why unix commands can be divided into internal and external commands?
Write a command to kill the last background job?