Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.
Answer Posted / 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 |
Post New Answer View All Answers
How do I delete files from command prompt?
What is unix command?
What is the first character of the output in ls l command?
What is the comma to show the space allocation of files?
What are reported commands?
Explain command to show the space allocation of files?
What is the comma to display different lines that are found when compare two files?
Which command will print your home directory on screen?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is used to type command?
What is ‘ps’ command for?
Explain ‘library functions’ with respect to unix commands?
What do chgrp command do?
How does pipe () work?
What is the use of tee command?