[GRASS5] New parameter for v.report to hide header
Paul Kelly
paul-grass at stjohnspoint.co.uk
Mon Feb 2 05:36:23 EST 2004
Hello Rich
On Mon, 2 Feb 2004, Rich Gibson wrote:
> Hi All,
>
> I just patched my v.report to add the flag -d for 'data.' This causes the
> header and footer to not be shown.
>
> This is useful for me when calling v.report in a script.
What about writing the header to stderr 'fprintf(stderr, "....' and the
main information to stdout 'fprintf(stdout, "...' That would mean in a
script if you pipe the output of the command to another command you will
only get what was sent to stdout. But running with output to a terminal as
normal then everything would appear in sequence as normal.
Is that a potential alternative solution?
It is good to use unified format for diffs (diff -u) as it makes them
easier to read and more reliable to apply because the changes are
surrounded by context in the changed file.
If you have GRASS checked out from CVS then you can run something like
cvs diff -u src.contrib/SCS/vector/v.report
(from the top-level GRASS source directory) which automatically diffs your
local changed version against that in the CVS repository.
Paul
More information about the grass-dev
mailing list