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 / saravan
Sorry use the below commands to get the exact word contains
3 char in the file.
grep -w "[a-zA-Z][a-zA-Z][a-zA-Z]" <filename>
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / 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 |
Give Command that will move a single file called "unix.txt"
How do you find which version and name of unix you are using at the command prompt?
what is the difference between Touch & cat command
A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me
what is the command to print last 8 lines of any text file.
Give two UNIX kernel parameters that effect an Oracle install
what does the 'tee' command do?
In Unix file permissions what does the second field denotes?
Explain ‘library functions’ with respect to unix commands?
what is the meaning of this command rm -rf / what will it do ?
how will you login one server's shell prompt to an another server?
5 Answers Cosmic Infotech, Perot Systems,
What are the unix commands?