Answer Posted / jam
To print a specific line without using a string.
sed -n '1p' <filename>
Where 1 is teh line number
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
how to sort the content of the file based on numeric values
What is command substitution?
Why is shebang used?
Which command will print your home directory on screen?
What is nr in awk command?
How to use grep command to list find the records of a file containing 10 different strings?
What is updatedb?
What does grep v grep do?
What is the difference between grep and grep?
What are reported commands?
What is ‘ps’ command for?
What are the general commands in using unix os for a beginner?
Name the unix command to find how many days the server has been up.
Differentiate cmp command from diff command.
Explain ‘system calls’ with respect to unix commands?