Fixed permission denied with > and >>
Added >> in the grammar