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 a bash command?
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?
Explain command to view process running?
How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.
3 Answers Amazon, MBA, Syntel, TCS, Unisys,
how to check a file system type
hw will u use awk in replacing cahrs and files
what is the command to print last 8 lines of any text file.
what is shell?
Write a command to display a file’s contents in various formats?
Which command is used to copy files?
What is merge command in unix?
what will this do $cat > file.c ?(file.c is a file in current directory)