DFIR Python Study Group: Class 4 – practice script

As stated in my previous blog post, I split this class up into two posts. I’m around 21 minutes into the class 4 study group video . Here we’re trying to remove those gaps we see in the output of our code. Code:     Output (see the gap?):   Removing the gap isn’t necessary, but personally, I don’t like it, so I am glad we’re working on how we can modify our code to remove it using rstrip() . .rstrip() removes trailing characters (like the space character we have ‘/n’ in our list). If we add this into our code at the end of our splits, we’re removing the space character from the end of our second list item (which is actually item 1 - remember in Python we count from 0) and we should no longer see the space in our output.      Result:   Ahh. Much better. Now we learn how to get our output to save to a new file. In my last blog post, I accomplished this by using the command line, however, in this class we go over how to do this by writing it directly in our code. What is m