For the past few days I have been attempting to write my own shell implementation but I seem to have gotten stuck on getting pipes to work properly. I am able to parse a li
Here's a tutorial on UNIX pipes, specifically about how to construct piplines in a shell-like architecture:
http://www.cse.ohio-state.edu/~mamrak/CIS762/pipes_lab_notes.html
Not much fully-written code, but it describes the concepts pretty well.
You could also download source code for virtually any shell, such as bash, tcsh, zsh, etc.