grep - Bugs: bug #48344, Add optional ODF document handling...
You are not allowed to post comments on this tracker with your current authentication level.
bug #48344: Add optional ODF document handling to grep
Submitter: | Ken Beal <brotherken> | ||
Submitted: | Wed 29 Jun 2016 03:35:00 PM UTC | ||
Category: | None | Severity: | 1 - Wish |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | meyering |
Open/Closed: | Open |
Fri 01 Jul 2016 04:38:09 AM UTC, comment #3: |
Jim Meyering <meyering> |
Fri 01 Jul 2016 04:29:25 AM UTC, comment #2: Thank you for the suggestion, but adding such a feature to grep would open the gates to adding support for tens if not hundreds of other binary formats. What about pdf, docx, and older "word" versions. It doesn't make sense to encumber a fundamental tool like grep with such specialized code.
|
Jim Meyering <meyering> |
Wed 29 Jun 2016 07:56:03 PM UTC, comment #1: Also note that in the sample scripts, the matched portion is discarded. This isn't the desired behavior; I'd like it to show, as much as is possible, "the line it's on", and to have the "before" and "after" command-line parameters function properly with the new option as well.
|
Ken Beal <brotherken> |
Wed 29 Jun 2016 03:35:00 PM UTC, original submission:
The ODF document format is not plain-text; it is a compressed file, containing content.xml which has the text in it, in XML format.
|
Ken Beal <brotherken> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-07-01 | meyering | Assigned to | None | meyering | |
2016-07-01 | meyering | Severity | 3 - Normal | 1 - Wish |
Powered by Savane 3.13-758e.
Corresponding source code
However, if someone were to invest in a well-written wrapper script that can do what you suggest, I would be happy to consider including it in the grep distribution.
However, note that writing such scripts robustly and portably is tricky. For a good starting point, see the zgrep.in template in the GNU gzip repository: http://git.savannah.gnu.org/cgit/gzip.git/tree/zgrep.in