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
Which command is used to delete all files in the current directory and all its sub-directories?
Which unix command to make a new directory?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is grep in bash?
hw will u use awk in replacing cahrs and files
What does the “echo” command do?
how to sort the content of the file based on numeric values
Describe the usage and functionality of the command rm –r * in unix?
What are the unix commands?
What is the function of grep command in unix?
What does touch command do in unix?
Write a command to display a file’s contents in various formats?
What are the commands in UNIX to list the files in a Directory?
Why is grep called grep?
Why is shebang used?