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
Write a command that will display files in the current directory, in a colored, long format.
What is pipe command in unix?
What do chown command do?
What is the difference between grep and grep?
What is command substitution?
Can you enlist some commonly used network commands?
Describe the zip/unzip command using gzip.
Explain command to show the space allocation of files?
What is awk used for?
What is grep command in unix with examples?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
How does pipe () work?
Enumerate some of the most commonly used network commands in unix?
What is the use of tee command?
What does the command ' $who | sort –logfile > newfile' do?