if we create a file, in that 10 rows(means 1,2,....9,10
like). i want 7 row exactly, which command use in unix?
plz send this question.

Answer Posted / ramesh

head -7 <file name>|tail -1

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does shebang work?

588


What is the difference between cat and more command?

623


What is unix command line?

606


What is the use of cut command in unix?

690


What are reported commands?

562






What is nr in awk command?

600


Enlist some filename manipulation commands in unix.

549


What are the unix commands?

557


What's a command word?

585


Name the various commands that are used for the user information in unix.

539


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 chgrp command do?

590


What is the size of time_t?

645


Explain ‘system calls’ with respect to unix commands?

600


How can you see the command line history?

582