I need it help with shell script, python script or anything that can do this. I want to create a script that can parse the following information from a “txt” file to csv. Info I need to parse for my online grade book is to take the username and the lab score. The lab score can be found on this line
Your score for this lab: 20/20
and the username can be found on this line
Student: username0
Thank you for reading and helping me!
Here is the example of the file test.txt
Student: username0
Your score for this lab: 20/20
Score Breakdown:
info...
Part 1:
Part 2:
Part 3:
------------------------------------------------
------------------------------------------------
------------------------------------------------
Student: username1
Your score for this lab: 20/20
Score Breakdown:
info...
Part 1:
Part 2:
Part 3:
------------------------------------------------
------------------------------------------------
------------------------------------------------
Student: username2
Your score for this lab: 20/20
Score Breakdown:
Part 1:
Part 2:
Part 3:
------------------------------------------------
------------------------------------------------
------------------------------------------------
Bah, this is so easy to do in Python, why not share it with you?