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 |
What is the command to check ports active in UNIX?
How do you move or rename a file or directory?
What is used to type command?
What do you mean by zambie process?
How to get the last ten lines of a file using awk utility?
what do you understand bythe term 'de-mountable volumes'?
what is the advaantage of each user having its own copy of the shell?
If JFS file system is 100% full how we can increase the file system ?
what is the command to print last 8 lines of any text file.
How do I use grep to find a file?
Which command will you use to change the permissions on file?
How do you list the files in an UNIX directory while also showing hidden files?