A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answer Posted / raja
head -n <filename>
here n for no.of records we want.
ur quention my ans is
head -1 <filename>
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the nmap command?
What is the general format of unix command syntax?
What is grep command in unix with examples?
What is pipe command in unix?
What is the pipe command?
why metadb requires a seperate slice to create Solaris volume manager
Explain command to view process running?
What is merge command in unix?
How do I run a bash script?
Which command is used to copy files?
What is unix command?
how to sort the content of the file based on numeric values
Which unix command to make a new directory?
Name the unix command to find how many days the server has been up.