A Gröbner representation for linear codes