Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.
Answer Posted / 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 |
Post New Answer View All Answers
Explain ‘library functions’ with respect to unix commands?
What are awk commands?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Why is shebang used?
What is the use of the command 'ls -x chapter[1-5]' ?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is sed awk grep?
Is it inbetween or in between?
Name the unix command to find how many days the server has been up.
What is in grep command?
What is grep in bash?
What is the use of finger command?
Can you enlist some commonly used network commands?
What are reported commands?
Differentiate cat command from more command.