Search for the string "dynamic" in all text files in the Documents directory and write the results to Output.json, appending to the existing file if it exists.
grep -Fnh "dynamic" ~/Documents/*.txt | tee -a ~/Output.json