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 |
How do you find which version and name of unix you are using at the command prompt?
Give Command that will change the name of a directly from paypal to eBay
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,
Can a process kill itself in UNIX/or in its various versions?
how to change a normal file into hidden file
How to get the last ten lines of a file using awk utility?
what does the command 'wc' do?
their is a file1,file2 and i want to append file1 data to file2?
What do know about tee command and its usage?
what is virtual machine?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
what are filters?