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 comma to show the space allocation of files?
What is the pipe command?
Write a command to display a file’s contents in various formats?
What does the metacharacter mean?
Can you explain a little bit about command substitution?
How do I run a whois command?
Which command can you use to find the currently running process in unix server?
How to use grep command to list find the records of a file containing 10 different strings?
Why is it called grep?
What is the use of find command in unix?
Explain ‘system calls’ with respect to unix commands?
What is the command to compare two files in unix?
Which command is used to restrict incoming messages?
Explain the steps that a shell follows while processing a command.
What is unix command line?