User defined pipe and redirection operators: Difference between revisions
Content added Content deleted
(I estimate this alternative task can be done '''without''' using co-routines in GNU C.) |
(Pass each record on as soon AS available through each of the filter/procedure in the chain.) |
||
Line 11: | Line 11: | ||
* Provide simple equivalents of: cat, tee, grep, uniq, wc, head & tail, but as filters/procedures native to the specific language. |
* Provide simple equivalents of: cat, tee, grep, uniq, wc, head & tail, but as filters/procedures native to the specific language. |
||
* Replicate the below sample shell script, but in the specific language |
* Replicate the below sample shell script, but in the specific language |
||
* Specifically ''do not'' cache the entire stream before the subsequent filter/procedure starts. Pass each record on as soon |
* Specifically ''do not'' cache the entire stream before the subsequent filter/procedure starts. Pass each record on as soon as available through each of the filters/procedures in the chain. |
||
'''Alternately:''' if the language does not support operator definition then replace with: |
'''Alternately:''' if the language does not support operator definition then replace with: |