Skip to content

An emulated CLI using POSIX threads to handle multiple pipes

Notifications You must be signed in to change notification settings

plaidman1701/unix_cli_pipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

This is a unix CLI emulator that handles multiple pipes. Each piped segment is spun off as a separate POSIX child thread and piped to the next segment.

Each pipe character requires a space before and afterwards. Input and output redirects can be used in the first and last segment respectively, as long as there are no spaces between the redirection operator and the file name. For example, the following will work;

> cat <input.txt | tr a A | tr b B >output.txt

However,

> cat < input.txt|tr a A|tr b B > output.txt

Is all kinds of wrong

About

An emulated CLI using POSIX threads to handle multiple pipes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages