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 |
distinguish between user mode and kernel mode?
How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?
How to install scsi driver in unix? give me explanation clearly?
what does the job command do?
what is the shell for dos,nt operating systems?
Where can I get the free download of Unix by Yeswant Kanetkar?
How do you repeat a command in terminal?
What is Unix, and how does it differ from other operating systems?
how to sort the content of the file based on numeric values
Is command prompt unix?
Describe the usage and functionality of the command rm –r * in unix?
What is command substitution?