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
Explain ‘system calls’ with respect to unix commands?
What is the difference between grep and grep?
Is it inbetween or in between?
What are the general commands in using unix os for a beginner?
How do you grep recursively?
Explain how to use grep command to list find the records of a file containing 10 different strings?
why metadb requires a seperate slice to create Solaris volume manager
What are bash commands?
What does the command ' $who | sort –logfile > newfile' do?
What does the command '$ls | wc –l > file1' do?
What is the significance of the 'tee' command?
What is the difference between cat command and more command?
What are grep patterns?
What is ‘ps’ command for?
What is the nmap command?