in reply to script to grab string from log and print them in a different log
You might also consider not writing any code at all: Good ol' grep could do it in a jiffy.
grep '\"_' log.txt >Backup/backup.txt [download]
--roboticus