Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.
Answers were Sorted based on User's Feedback
Answer / sudhir kumar
sorry the command will be like below..
grep -x "abc" <file_name>
Regards,
Sudhir Kumar
Is This Answer Correct ? | 6 Yes | 17 No |
Answer / sudhir
The command will be like this
grep -c "abd" <file_name>
This command gives you the line number which contain three
character.
Regrds,
Sudhir
Is This Answer Correct ? | 6 Yes | 18 No |
What is the function of grep command in unix?
Describe the usage and functionality of the command rm –r * in unix?
Using unix command how to display no of records in oracle?
what does the 'tee' command do?
When the shell is reading the command line what is the difference between text enclosed between double quotes ( ” ) and text enclosed between signal quotes ( ’ )?
Is it inbetween or in between?
what is Online(STM) and offline diagnostics in HP-UX?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
How do you find which version and name of unix you are using at the command prompt?
Which command is used to create a directory?
How do I search for text in vi?