Did it in BASH