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 / meenu
if u want first 7 rows then
head -n7 <filename>
but if you want only 7th row then
awk 'nr==7 {print}' <fileanme>
or
tail -n4 <filename>|head -n1
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What is the nmap command?
What command will change your prompt to myprompt?
What does the “echo” command do?
What is the size of time_t?
What do chmod, chown, chgrp commands do?
Using unix command how to display no of records in oracle?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is ctrl d?
What is the unix command to confirm a remote host is alive or not?
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
How can we use grep command in unix?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Does cp command overwrite files?
How do you grep a case insensitive?
What is the general format of unix command syntax?