Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.
Answers were Sorted based on User's Feedback
Answer / sudhir kumar
sorry the command will be like below..
grep -x "abc" <file_name>
Regards,
Sudhir Kumar
| Is This Answer Correct ? | 6 Yes | 17 No |
Answer / 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 |
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,
What does the “echo” command do?
Why is it called grep?
What is command statement?
What is the difference between cat command and more command?
How do I run a whois command?
Give Command that will move a single file called "unix.txt"
What is “chmod” command?
what is tar command and what are the different types of tar commands?
what is the advaantage of each user having its own copy of the shell?
0 Answers BMC, CNS, DELL, Infosys,
What's a command word?
Write a command that will display files in the current directory, in a colored, long format.