Loop on mysql output with bash

2018-03-12 Thread Boubaker Idir
Hello everybody, I need to do a loop on my mysql output (packetid) and put it everytime on the second SELECT command, to have a result for each packetid and put it everytime on text file. can you help me please? Thank you so much #!/bin/bash array=$(mysql -u root -pMyPassword -s -N

Loop on mysql output with bash

2018-03-12 Thread Boubaker Idir
Hello everybody, I need to do a loop on my mysql output (packetid) and put it everytime on the second SELECT command, to have a result for each packetid and put it everytime on text file. can you help me please? Thank you so much #!/bin/bash array=$(mysql -u root -pMyPassword -s -N

Loop on mysql output with bash

2018-03-12 Thread Boubaker Idir
Hello everybody, I need to do a loop on my mysql output (packetid) and put it everytime on the second SELECT command, to have a result for each packetid and put it everytime on text file. can you help me please? Thank you so much #!/bin/bash array=$(mysql -u root -pMyPassword -s -N