Bash Put Output Into Array Methods In C