Lesson 1: A script that deleted the wrong folder · 8 min
Before you begin · The clean-up · What went wrong
Learners sign in, so every finish and score is recorded. 8 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The clean-up · What went wrong
Building blocks · Predict the output · Check
Filters in a pipeline · Which tool?
Macro habits · The overwritten total · Controls
Safe defaults · Rank the risk · Check
The reviewer's checklist · Practice
Taken from the course itself.
What is the best prevention for this kind of mistake?
Answer: Check the variable is set and do a dry run first. Checking the variable and doing a dry run stop the script before it changes real data.
Lesson 1: A script that deleted the wrong folder
Which tool keeps only the lines that match a pattern?
Answer: A search tool such as grep. A search tool filters lines by pattern. Sorting only changes the order.
Lesson 3: Reading and filtering text
Why should a macro keep a log sheet?
Answer: So the next user can see what ran and when. A log sheet shows what the macro did, which helps anyone checking or fixing it.
Lesson 4: Spreadsheet macros without surprises
You need the lines containing "ERROR" with a count.
Best response: Filter with a search tool then count.
Weaker responses: Open it in an editor and count by eye; Copy to a spreadsheet; Delete other lines.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.