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
Which command is used to create a directory?
What are the general commands in using unix os for a beginner?
Who command in unix?
What does the md command do?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the use of tee command?
Name the general commands in using unix os for a beginner?
What are the commands in UNIX to list the files in a Directory?
How can you see the command line history?
What is time_t?
How do I clear my terminal history?
What are some command words?
How do I run a bash script?
Which command should you use to find the remaining disk space in unix server?
How does pipe () work?