Open tdenniston opened 9 years ago
i dont understand
Well, one of the most powerful primitives in bash (or any sort of shell) is redirection of input/output between processes. It's the "Unix philosophy": write lots of small programs that perform one job, and stitch them together with I/O redirection. Thus, bish must support these operations.
ls | grep foo
simply means list files, but instead of printing the listing to the screen, redirect that output into the input of the grep
tool. That's what the pipe character |
means. Then grep
is given a pattern to match, and prints all matches to the screen.
+1
Punting on this issue so I can do a 0.1 release.
Should be able to do e.g.
ls | grep foo
in bish.