Welcome to the forum.
Please become accustomed to provide decent context info of your problem.
It is always helpful to
carefully and detailedly phrase a request, and to support it with system info like
OS and shell, related environment (variables, directory structures, options), preferred tools, adequate (representative) sample input and desired output data and the logics connecting the two including your own attempts at a solution, and, if existent, system (error) messages verbatim, to avoid ambiguities and keep people from guessing.
How do you "search for these strings on different folders"?
Where is
$a defined, what be its contents?
Why do you execute
do_job in background?
Do you know of the
continue /
break commands to leave a loop?
Moderator's Comments:
|
|
Added spaces between lines to make it more readable
|
|