Bash Script for TODO finding

Code finds all TODOs recursively and outputs it in a single text filu

#!/bin/bash

: '
-n return line number
-i ignore case
-w match only whole words
-r recursive
'
rm todos.txt
result=( $(grep "TODO" -rwin .))

echo "${result[@]}" > ./todos.txt