Answer Posted / abani_mahana
sed -n '1p' <filename>
head -n filename | tail -1
(change n as per your requirements)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I search for a file in unix command?
Is grep faster than awk?
How do I find previous commands in unix?
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)?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What does 'mkdir' command do in UNIX?
How to use grep command to list find the records of a file containing 10 different strings?
Which unix command lists files/folders in alphabetical order?
What do know about tee command and its usage?
Write a command that will display files in the current directory, in a colored, long format.
Enumerate some of the most commonly used network commands in unix?
What is the difference between grep and grep?
What is awk used for?
What is time_t?
How does pipe () work?