I'm new in Unix/Gnu/Linux and trying learn some more about it.
I have a case where I need to run 2 scripts inside a loop, but these 2 scripts need to run sequentially.
For example:
TargetFile = /data/TEST.CSV
while read -r line || [ -n "$line" ];
do
script_copy_file.sh $Parm1 $Parm2 $Parm3
script_split_file.sh $Parm1 $Parm2
done < "$TargetFile"
Do I need to put something in between those 2 scripts so the script_split_file.sh will run after script_copy_file is finished? I read some article to use &&, but I'm here to seek some advice about the best practice for it.
Or will it naturally run in sequence?
Sorry if my question is funny or weird, I just try to learn and understand. Really appreciate for your help.
Thank you.