Show HN: Using Rust to write shell-script like tasks
<p><pre><code>  > A lot developers just choose shell(sh, bash, ...) scripts for such tasks,
  > by using < to redirect input, > to redirect output and '|' to pipe outputs.
  > In my experience, this is the only good parts of shell script.
</code></pre>
If you try to use shell as a general purpose programming language, of course it sucks.<p>If you treat shell as a DSL for files and streams, nothing can beat it. Shell is amazing.<p>I'm sceptical a bunch of Rust macros can beat shell. I think you'd better off writing a few smaller programs that use STDIO and stringing them together with shell.