Oracle
1Z0-409 · Question #178
The user smith wants to display the total number of lines that are 4 characters (letters and digits) long or more from the file1.txt file. Which regular expression or command should smith use?
The correct answer is A. egrep "^[[:alnum:]]{4,}$" file1.txt | wc -l. See the full explanation below for the reasoning.
Question
The user smith wants to display the total number of lines that are 4 characters (letters and digits) long or more from the file1.txt file. Which regular expression or command should smith use?
Options
- Aegrep "^[[:alnum:]]{4,}$" file1.txt | wc -l
- Begrep "^[[:alpha:]]{4,}$" file1.txt | wc -l
- Cegrep "^[[:alpha:]]{4,}$" file1.txt | wc -w
- Degrep "^[[:alnum:]]{4,}$" file1.txt | wc -c
How the community answered
(50 responses)- A78% (39)
- B4% (2)
- C4% (2)
- D14% (7)
Community Discussion
No community discussion yet for this question.