csv export + bash test script