Exercises
Try out the following exercises to test your knowledge of this chapter:
- Write a function that will list all databases and feed that list to the for loop we’ve created.
- Change a date timestamp into another format of your choosing.
- Catch any errors the
find
function could return (for example, it couldn’t delete a file).