Re: bash array

2018-01-25 Thread Gokan Atmaca
> === > #!/bin/sh > exec 3< "user.list" > exec 4< "pass.list" > > while IFS= read -r user <&3 && IFS= read -r pass <&4 > do > exampleprogram "$user" "$pass" > done > > exec 3<&- > exec 4<&- I arranged according to this example. Very thanks.

Re: bash array

2018-01-25 Thread Greg Wooledge
On Thu, Jan 25, 2018 at 03:35:35PM +0300, Gokan Atmaca wrote: > The problem is: I can pull the users one by one. I can not do the same > for passwords. Why not? > Do I need to use "Mapfile" for this? How would we know? You haven't told us what is in the files, or what you want to DO with the co

Re: bash array

2018-01-25 Thread Gokan Atmaca
>> I have the user list and the password list. I shot them with BASH. I >> want to give passwords to the usernames in these separate files in >> order. >> >> File names: >> Users.list >> Passwords.list Hello I'm sorry for the late reply. The problem is: I can pull the users one by one. I can not

Re: bash array

2018-01-15 Thread Greg Wooledge
On Sun, Jan 14, 2018 at 03:46:06PM +0300, Gokan Atmaca wrote: > I have the user list and the password list. I shot them with BASH. I > want to give passwords to the usernames in these separate files in > order. > > File names: > Users.list > Passwords.list > > In a loop, I have to not throw them

Re: bash array

2018-01-14 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Jan 14, 2018 at 03:46:06PM +0300, Gokan Atmaca wrote: > Hello > > I have the user list and the password list. I shot them with BASH. I > want to give passwords to the usernames in these separate files in > order. > > File names: > Users.list

bash array

2018-01-14 Thread Gokan Atmaca
Hello I have the user list and the password list. I shot them with BASH. I want to give passwords to the usernames in these separate files in order. File names: Users.list Passwords.list In a loop, I have to not throw them into users of these passwords. I did this for it, but it did not work. #