cancel
Showing results for 
Search instead for 
Did you mean: 
mathewl1
Cadet
Cadet
  • 525 Views

What am I missing I feel like I have done the script right but still get the fail on the grading

Jump to solution

Lab 1A improve command-line productivity still getting fail on last 2 parts everything else passes what am i missing

Labels (1)
  • 1

19 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 162 Views

@mathewl1 may be you mean that in your  script the number / count of "#" is less than what is hardcoded in the grading script :

echo "#####"  

 

Can you make sure you have copied this exact number of # in your script and then grade and verify ?

Not sure but this is what I deduced from your message.

0 Kudos
mathewl1
Cadet
Cadet
  • 161 Views
Yes I did, I'll run again maybe I missed one. so that can cause that error?
Chetan_Tiwary_
Community Manager
Community Manager
  • 159 Views

@mathewl1 try that - it could be if that is hardcoded. 

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 156 Views

@mathewl1 I just confirmed it - if you dont put the count of "#" as shown in the lab - it wont grade you pass in that particular step :

Chetan_Tiwary__0-1763740450699.png

here I have put 4 #s- hence failed.

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 156 Views

@mathewl1 when I put 5 "#"  as shown in the lab - it graded me pass in that step : 

Chetan_Tiwary__1-1763740529173.png

that means 5 # is hardcoded in the grading script. 

0 Kudos
mathewl1
Cadet
Cadet
  • 154 Views
I see I was told those #'s are arbitrary in the number used so that helps allot I will try that in the next lab I do
Chetan_Tiwary_
Community Manager
Community Manager
  • 152 Views

@mathewl1 I believe it is not arbitrary as long as it is mentioned in the instruction inside echo command ( exam or course ) :

Chetan_Tiwary__1-1763741148167.png

 

If the instruction says you need to echo something "xyz"  - then that exact string ( including characters ) is not arbitrary.

 

0 Kudos
Travis
Moderator
Moderator
  • 296 Views

@mathewl1 -

Just like with exams, we must be exact. The grading in our courses could be a little bit different than an actual exam, however, when we are told to do something with an output of ##, it might be looking for exactly the ##, not #, or not ###.

In this instance the grading is doing ...

$(grep "^#####$" ${output1} | wc -l) -eq 4 $(grep "^#####$" ${output1} | wc -l) -eq 4 

So we are actually searching for strict matching in the output file. So this would fail with too many or too few #.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
mathewl1
Cadet
Cadet
  • 105 Views

Thnak you! I feel so dumb for the easy overlook on that but I was told it was arbitrary for how many # were used so didnt even think about that, thank you for helping me out finally got the pass! Have a great day and thank you again!

0 Kudos
  • 2 Views

If you’re thinking, “What am I missing? I feel like I have done the script right but still get the fail on the grading,” you’re not alone. This usually happens due to small overlooked details—such as formatting issues, missing conditions, indentation errors, or not meeting specific rubric requirements. Double-check the instructions, compare your output with the expected result, and validate your script step-by-step. Sometimes the fix is easier than it seems!

And if the frustration is getting too much, take a break and recharge your mind at Himalayan Tiger Adventure Rishikesh. A refreshing riverside stay or a thrilling rafting session can give you the clarity and energy you need to get back to your script with fresh focus.

 

0 Kudos
Join the discussion
You must log in to join this conversation.