I'd like to use awk to generate a LaTeX table from within a GRI script. When I go to enter a
\\ \hline
at the end of each row, the escape characters behave oddly. I've tried
\\\\ \\hline
and
\\\\\\\\ \\\\hline
and so on, trying to get past both GRI and awk's escape sequences. There is little documentation about escaping in GRI, could someone clue me in on how GRI handles this?
I'd like to use awk to generate a LaTeX table from within a GRI script. When I go to enter a
\\ \hline
at the end of each row, the escape characters behave oddly. I've tried
\\\\ \\hline
and
\\\\\\\\ \\\\hline
and so on, trying to get past both GRI and awk's escape sequences. There is little documentation about escaping in GRI, could someone clue me in on how GRI handles this?
Here's a sample line from my script:
#!/usr/bin/gri
system awk '/Standard/ {print $1, "&", $2, "\\\\\\\\ \\\\hline"}' tables/data.dat > tables/table.tex
Any ideas how to pass that phrase into the table?