New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco Exam 350-201 Topic 12 Question 96 Discussion

Actual exam question for Cisco's 350-201 exam
Question #: 96
Topic #: 12
[All 350-201 Questions]

Which bash command will print all lines from the ''colors.txt'' file containing the non case-sensitive pattern ''Yellow''?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Joanne
2 months ago
Haha, 'locate' commands? That's like using a sledgehammer to crack a nut. Grep is the way to go here!
upvoted 0 times
Pa
2 months ago
Yeah, grep is definitely the better option here.
upvoted 0 times
...
Rasheeda
2 months ago
D) grep ''Yellow'' colors.txt
upvoted 0 times
...
Stephane
2 months ago
A) grep -i ''yellow'' colors.txt
upvoted 0 times
...
...
Earleen
3 months ago
I'm not sure, but I think D) grep ''Yellow'' colors.txt might work too
upvoted 0 times
...
Kris
3 months ago
Option D would also work, but the -i flag in Option A makes it a bit more versatile.
upvoted 0 times
Helene
2 months ago
Yes, Option A) grep -i ''yellow'' colors.txt is the best choice for this task.
upvoted 0 times
...
Dominga
2 months ago
Option D) grep ''Yellow'' colors.txt would work too, but Option A is more versatile.
upvoted 0 times
...
Keneth
2 months ago
I agree, the -i flag in Option A makes it case-insensitive.
upvoted 0 times
...
Alana
3 months ago
Option A) grep -i ''yellow'' colors.txt is the correct command to use.
upvoted 0 times
...
...
Silvana
3 months ago
I agree with Ashley, using grep with -i option ignores case sensitivity
upvoted 0 times
...
Ashley
3 months ago
I think the answer is A) grep -i ''yellow'' colors.txt
upvoted 0 times
...
Lauran
3 months ago
I agree with Shonda. Option A is the way to go for this task.
upvoted 0 times
...
Shonda
3 months ago
Option A is the correct answer! The -i flag in grep makes the search case-insensitive, so it will find both 'Yellow' and 'yellow' in the file.
upvoted 0 times
Wilda
3 months ago
Yes, you're right! The -i flag in grep makes it case-insensitive.
upvoted 0 times
...
Frank
3 months ago
I think the answer is A) grep -i ''yellow'' colors.txt
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77