Hi I have a script mainscript.sh In main script I have multiple chile script.
child1.sh child2.sh child3.sh rm -rf /home/bdata/batch/*
I am running my mainscript.sh which will run all child jobs in parallel.
child1.sh & child2.sh & child3.sh & rm -rf /home/bdata/batch/*
4th statement runs before completing all the execution.
Is there any way I can control the execution of last line after finishing above 3 scripts in parallel.