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 execute a UNIX command in the background?
What does touch command do in unix?
What difference between cmp and diff commands?
Explain iostat, vmstat and netstat.
Can you explain a little bit about command substitution?
How to open a Database using Unix Command Please Do Reply
what is the command to find out which shell you are running?
Who command in unix?
Where LOG fiels resides in AIX and pls tel me how to remove the log file
What is the different between UNIX command and UNIX shell script?
how to delete entire records in unix ?
How to setup sudo, only can use for particular date & time only ( for solaris10 )