write grep commands to select the lines that have exactly
two characters
Answers were Sorted based on User's Feedback
Answer / mr. manindra nayak
grep -w '^..$' filename
or grep '[a-z][a-z]' filename
or grep '[A-Z][A-Z]' filename
| Is This Answer Correct ? | 2 Yes | 10 No |
Which command is used to delete all files in the current directory and all its sub-directories?
what does the command 'wc' do?
to list a particular line in the file
Why is it called grep?
How to copy multiple files and directories into some other directory?
How can we "forked" process in UNIX? How then recognize in any of the branches we?
Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance
What is the difference between awk and grep?
what is the command to find out the difference between files and folders?
what is the command to list files in a directory in UNIX?
How do I search for a file in unix command?
what is the use of "grep" command?