Re: Loop on mysql output with bash

2018-03-12 Thread Chet Ramey
On 3/12/18 12:42 PM, Boubaker Idir wrote: > 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 This might be bett

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