Lab 1A improve command-line productivity still getting fail on last 2 parts everything else passes what am i missing
@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.
@mathewl1 try that - it could be if that is hardcoded.
@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 :
here I have put 4 #s- hence failed.
@mathewl1 when I put 5 "#" as shown in the lab - it graded me pass in that step :
that means 5 # is hardcoded in the grading script.
@mathewl1 I believe it is not arbitrary as long as it is mentioned in the instruction inside echo command ( exam or course ) :
If the instruction says you need to echo something "xyz" - then that exact string ( including characters ) is not arbitrary.
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 #.
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!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.