Really Weird Shell - the structural regular expression shell - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
Quote:shell's job is mainly to process output from different programs I disagree with that. The shell's job is to handle IPC, and that's it. Text processing is done by the processes themselves, the shell only connects outputs to the next process input. Otherwise, you're creating a full blown text processor, that happens to have a way to start processes. I love the structural expression approach, but I think you should focus on that rather than making a complete shell. That wouldn't make much difference: Code: dmesg |> ,x/[lL]inux/ c/GNU+Linux/ |> ,p would then be (reusing sed's flags): Code: dmesg | se -e ',x/[lL]inux/ c/GNU+Linux/' |
|||