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 sed awk grep?
How do I search a whole word in vim?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What are awk commands?
What is the use of sed command in unix?
What does this command do,"$more readme.txt“?
Who wrote grep?
What do chmod, chown, chgrp commands do?
What are the commands in UNIX to list the files in a Directory?
What does the command '$ls | wc –l > file1' do?
Name the various commands that are used for the user information in unix.
What are file commands?
Differentiate cat command from more command.
How do I search for a file in unix command?
Does cp command overwrite files?