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 does this command do? Cat food 1 > kitty
How do I delete files from command prompt?
What does grep v grep do?
What's a command word?
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 do I clear my terminal history?
How to find $ai_serual resolved path by using unix
What is awk good for?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is grep in bash?
How do I find previous commands in unix?
What are the commands in UNIX to list the files in a Directory?
Describe the zip/unzip command using gzip.
What is the difference between cat command and more command?
What is the comma to show the space allocation of files?