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 |
what is the difference between pipe(|) and tee command..
Explain the steps that a shell follows while processing a command.
What is {} in find command?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Explain ‘library functions’ with respect to unix commands?
What is the use of find command in unix?
distinguish between interrupts and exceptions?
What is the difference between awk and grep?
What is unix command line?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is pid?
Why is it called a shebang?