A Bangladeshi man has been sentenced to jail for one month for attacking another expatriate with an iron bar, causing him injuries.