by winestock · 14y ago · 0 comments
The new programs, called Context-Free Grep and Hierarchical Diff, will provide the ability to parse blocks of data rather than single lines. For each new type of data structure, a vendor would provide a pattern library identifying the basic structure of the data, which the software would then use to "extract the constructs of interest from the document," Weaver said.
So how does the above fit into the Unix Philosophy's dictum that "Everything is just a stream of bytes (of text)?" Or does it?
Neither grep nor diff operate on a stream of bytes in their most common form. They operate on data structures called "lines" extracted from the stream of bytes according to a pattern hardcoded into the tools themselves.
Now that the camel's nose is under the tent…
But that exactly was my thinking as well. Complicated data-types sure need different tools, but if you want to use somethinng like grep and diff, it would be nice to have simple data. Which leads to the thinking that not grep and diff are the issue, but the data. Though the article even states it's not about replacement, but about a different area of usage:
>Such utilities could provide administrators the ability to work with more complex forms of data now being generated by network equipment and infrastructure software.