Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.
Answer Posted / jyoti pruthi
grep -n "..." <filename>
It will give u the lines that have only 3 characters with
line numbers. Here, "..." replace any 3 characters (single
dot represent single character).
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the use of finger command?
How does the system know where one command ends and another begins?
What is s and g in sed command?
Enlist some filename manipulation commands in unix.
How do you grep recursively?
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)?
What do chmod command do?
Which unix command lists files/folders in alphabetical order?
What does the “echo” command do?
What is the unix command to confirm a remote host is alive or not?
What is the functionality of a top command?
Why is it called grep?
How to use grep command to list find the records of a file containing 10 different strings?
Is grep faster than awk?
What are file commands?