Linux Foundation LFCS Exam - Topic 4 Question 66 Discussion
Given a file called birthdays containing lines like:YYYY-MM-DD Name1983-06-02 Tim1995-12-17 SueWhich command would you use to output the lines belonging to all people listed whose birthday is in May or June?
C) grep '[0-9]*-0[56]-' birthdays
A) grep '[56]' birthdays
B) grep 05?6? birthdays
D) grep 06 birthdays | grep 05
Linux Foundation LFCS Exam - Topic 4 Question 66 Discussion
Actual exam question for
Linux Foundation's
LFCS exam
I’m a bit confused about the syntax. I thought we needed to specify the month more clearly, but I can't recall if that means using brackets or just numbers.
I feel pretty confident about this one. Option C seems like the best choice - it's using a regex pattern to match the 05 or 06 month, which is exactly what the question is asking for. I think I'll go with that.
I'm a little confused by this question. The options all seem to be using different approaches to grep the file. I'm not sure which one is the most efficient or accurate. I might need to think this through a bit more before answering.
Okay, I think I've got this. Option C looks like the way to go - it's using a regex pattern to match the 05 or 06 month in the date. That should give me the lines I need for the May and June birthdays.
Hmm, I'm a bit unsure about this one. I'm not sure if the regex in option C is the best way to handle it. Maybe I should try option B instead, it seems a bit more explicit in checking for May and June.
I'm a bit confused by this question. It seems like the key issue is that the app is stopping after 60 minutes due to the Free pricing tier. Adding a continuous WebJob might not be the right solution since that's only available in higher tiers.
upvoted 0
times
...
Log in to Pass4Success
Sign in:
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up or
login
Davida
10 months agoCallie
10 months agoLyda
10 months agoTom
10 months agoIvette
11 months agoAliza
11 months agoJovita
11 months agoJennie
11 months agoVanda
11 months agoRenea
11 months agoCeleste
11 months agoTammi
11 months agoJenifer
11 months agoDorothy
12 months agoLuke
12 months agoElvera
12 months agoSkye
12 months agoHerminia
12 months ago