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
What are bash commands?
Write a command to display a file’s contents in various formats?
Which command is used to find whether the system is 32 bit or 64 bit?
Which command is used to create a directory?
Is it inbetween or in between?
What are grep patterns?
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
Is grep faster than awk?
Explain mount and unmount command.
What are the commands in UNIX to list the files in a Directory?
What is the size of time_t?
What does find command return in unix?
Which command is used to copy files?
How do I clear my terminal history?
What happens when we execute a unix command?