Answer Posted / 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 |
Post New Answer View All Answers
What is the command to view process running?
What is the use of the tee command?
What are the differences among a system call, a library function, and a unix command?
How do you repeat a command in terminal?
What is grep r?
What is command substitution?
Which command is used to delete all files in the current directory and all its sub-directories?
What is the behavioural difference between cmp and diff commands?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
How do I find previous commands in unix?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is grep and how do you use it?
How do I run a bash script?
What is the first character of the output in ls l command?
Why is it called a shebang?