I am new to any programming so I think I have a relative simple problem.
I am trying to automate performing multiple searches from pubmed through Edirect by inputing a file that contains different search terms on each line that outputs to a text file. The formula below works when the input file only has a few search terms, but I get timed out when I have a file with more search terms. I think I need to put a "sleep" parameter somewhere to slow down the query, but can't quite figure out where.
IFS=$'\n'; for next in $(cat testsearch.txt) ; do esearch -db pubmed -query $next >>output.txt ;done