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 / kantha
Hi, If you want to display 7th line from the file, simple
way is,
$head -7 <filename>| tail -1
Thanks
Kantha
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What are filter commands in unix?
What is grep command in unix with examples?
Explain ‘system calls’ with respect to unix commands?
What is the use of the tee command?
What does 'mkdir' command do in UNIX?
Is ‘du’ a command? If so, what is its use?
What is difference between grep and find command in unix?
What is s and g in sed command?
What does sed command do in unix?
Differentiate cat command from more command.
What do chmod, chown, chgrp commands do?
What is command statement?
What is awk used for?
What difference between cmp and diff commands?