MacTech interview question

To write a bash script