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
What are the unix commands?
What does #!/ Bin sh do?
What do chmod, chown, chgrp commands do?
What does the md command do?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Why is it called a shebang?
Differentiate cmp command from diff command.
Which command will print your home directory on screen?
What does 'mkdir' command do in UNIX?
What is the first character of the output in ls l command?
What's a command word?
What does the “echo” command do?
What do chgrp command do?
What is grep command in unix with examples?
Is it inbetween or in between?