bash set variable from command - Search