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 use grep to find a file?
How do I search for text in vi?
What is s and g in sed command?
How do I use grep to search for a file?
What is a bash command?
Give the command for finding the current date.
What is command statement?
How can you see the command line history?
What is awk good for?
Enlist some filename manipulation commands in unix.
What do chown command do?
What command is used to check the current users?
What is the unix command to confirm a remote host is alive or not?
What is the comma to display different lines that are found when compare two files?
What does pipe () return?