A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answer Posted / namdeo patil
head -n 1 filename
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How do I search a whole word in vim?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How to use grep command to list find the records of a file containing 10 different strings?
What are some command words?
What is the search command in unix?
How do you grep a case insensitive?
Can you enlist some commonly used network commands?
What is .sh file?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What does sed command do in unix?
What does pipe () return?
What is the use of awk command in unix?
What is the difference between cat command and more command?
Enlist some filename manipulation commands in unix.
Explain mount and unmount command.