I know that in order for a matrix to have a left inverse (/right inverse)it must be full column rank (/row rank).

I know how to obtain an inverese for a non-singular square matrix (RREF of [A|I]) but I do not know how to obtain left or right invereses for an arbitrary mxn matrix that has either full column or row rank.