to list a particular line in the file
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / deepak
grep -i " give_the search keyword here" (specify the directory location/file to search)
Is This Answer Correct ? | 3 Yes | 2 No |
sed -n '1p' <filename>
head -n filename | tail -1
(change n as per your requirements)
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ranjitha
using head and tail command we can print the required line
as an output.
Is This Answer Correct ? | 2 Yes | 7 No |
Explain the read, write, and execute permissions on a UNIX directory.
What are file commands?
What is the first character of the output in ls l command?
What is the function of grep command in unix?
How do I search for text in vi?
what is the difference between KILL and KILL -9?
5 Answers Informatica, Nutanix,
What happens when we execute a unix command?
Why is awk called awk?
What are awk commands?
Explain command to display different lines that are found when compare two files?
What are the dos commands?
what is mount ,tell me about mount ,how can u use in real time project??