[Tex/LaTex] Tabular with automatic \hline

rulestables

Is there a package or simple command that will insert an \hline after every line in a tabular environment? It is rather annoying to do it all manually, and it seems like there should be a simple way of doing this (it seems to be a relatively common thing to want to do).

Is there something that does this?

Edit: In case it does not go without saying, I would also like a line above the first row as well.

Clarification: I currently have something that looks like this:

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath,amsthm}
\usepackage{amsfonts}

\begin{document}
\begin{tabular}{l}
\hline
a\\
\hline
a\\
\hline
a\\
\hline
a\\
\hline
a\\
\hline
\end{tabular}

\end{document}

I would like to have something that would remove the need for me to type \hline so many times.

Best Answer

to make a table line followed by a line the markup is \\\hline That's only 8 characters so it's rather hard to come up with a less intrusive markup, given that you have to mark the end of row manually anyway. Perhaps \def\nl{\\\hline} then you only need the three characters \nl at the end of each row.