This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4442 - output-format should be easy grep'able
Summary: output-format should be easy grep'able
Status: NEW
Alias: None
Product: LinkChecker
Classification: Unclassified
Component: checklink (show other bugs)
Version: 4.3
Hardware: All All
: P4 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-31 17:54 UTC by Oliver Bandel
Modified: 2013-11-03 07:35 UTC (History)
3 users (show)

See Also:


Attachments

Description Oliver Bandel 2007-03-31 17:54:56 UTC
Hello,

today I installed and used your link-checker the
first time.

It's a fine tool, but it could be much better,
if the output would be easy to grep.

On possible format could be
"LINK_OK: http://...."
or
"LINK_NOT_OK: <error-description> http://....."

Then with
  grep LINK_NOT_OK <linkcheck.log>
all links that must be fixed
could easily be extracted.

Especially for large sites this would be
a very convenient way to work.

otherwise each entry must be viewed in detail,
and this needs a lot of time (or someone
must implement a parser for your output that
is much more complicated; this wouldn't make sense,
when a grep would be enough).

TIA,
  Oliver Bandel
Comment 1 Ville Skyttä 2007-04-01 17:25:04 UTC
Don't the --summary and/or --quiet options meet your needs?

BTW, the suggested format would not work; at least in recursive mode it would have to include the URL of a document where the broken link/fragment was found.

See also bug 382 which requests a somewhat similar feature.