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
Which command is used to restrict incoming messages?
What do chmod, chown, chgrp commands do?
Which command will print your home directory on screen?
Who command in unix?
Are you in or at the office?
Which unix command lists files/folders in alphabetical order?
Name the various commands that are used for the user information in unix.
Which command is used to find whether the system is 32 bit or 64 bit?
What command will change your prompt to myprompt?
What does this command do? Cat food 1 > kitty
What does grep v grep do?
Name the unix command to find how many days the server has been up.
What is pipe command in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Can you explain a little bit about command substitution?