Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM Exam LCP-001 Topic 4 Question 76 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 76
Topic #: 4
[All LCP-001 Questions]

Which of the following commands would display the lines containing capital letters form the file "turkey.txt"?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Curt
1 months ago
I think option D is trying to do the opposite of what the question is asking. Grep -v will display the lines that don't contain capital letters.
upvoted 0 times
...
Venita
1 months ago
Haha, option E is just silly. 'for [A-Z] in turkey.txt | count'? That's not even a valid command!
upvoted 0 times
Beatriz
20 hours ago
Yeah, that's the command to display lines with capital letters.
upvoted 0 times
...
Ammie
9 days ago
I think the correct answer is B) grep -n [A-Z] turkey.txt
upvoted 0 times
...
Deandrea
20 days ago
I agree, option E doesn't make any sense.
upvoted 0 times
...
...
Nohemi
1 months ago
I'm not sure about option C. Piping the output of cat to wc and then specifying [A-Z] doesn't seem quite right.
upvoted 0 times
...
Rickie
2 months ago
I'm not sure, but I think option B makes sense because it specifies to search for capital letters in the file.
upvoted 0 times
...
Geraldine
2 months ago
I agree with Candida, grep command is used to search for patterns in files.
upvoted 0 times
...
Frank
2 months ago
Option B looks good to me. grep is the right command to search for patterns in a file, and the -n option will display the line numbers as well.
upvoted 0 times
Timothy
25 days ago
User 2: Yes, I agree. grep -n [A-Z] turkey.txt will display the lines with capital letters.
upvoted 0 times
...
Ozell
28 days ago
User 1: I think option B is the correct one.
upvoted 0 times
...
...
Candida
2 months ago
I think the answer is B) grep -n [A-Z] turkey.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