Anonymous user
Talk:User defined pipe and redirection operators: Difference between revisions
Talk:User defined pipe and redirection operators (view source)
Revision as of 22:35, 13 September 2011
, 12 years agorm dup section
m (→more ambitious than unix: reword.) |
m (rm dup section) |
||
Line 90:
[[User:NevilleDNZ|NevilleDNZ]] 03:26, 13 September 2011 (UTC)
== more ambitious than unix ==
Line 111 ⟶ 103:
In essence that is required is the creation of the operators "<", "|", ">", "<<" & ">>", with the basic plumbing such as "cat" & "tee".
Here are my thoughts, sketched in python code, note:
Here are my thoughts, sketched in python code, note the code ''does not'' require OS pipes, neither does it require OS multitasking. Note also: data is being passed as "rec", this could be a string, but the key point is that (essentially) in this sketch only a one record buffer is required, and this in actuality only the ''argument list'' itself.▼
* the code ''does not'' require OS pipes
* neither does it require OS multitasking
▲
<lang python>#!/usr/bin/env python
Line 150 ⟶ 145:
cat("List_of_computer_scientists.lst") | grep("ALGOL") > "ALGOL_pioneers.lst"</lang>
So try not using "unix pipes".
I hope that helps.
|