bash - How to insert a pipe and command into the end of the current input? -
i found nice command called espeak. can read stdin , speak result.
$ du -sh . | espeak $ ls -a | grep foobar | espeak etc anyway, works fine think putting | espeak end of line every time isn't efficient. want insert automatically without typing hand. there way achieve this?
assuming want see output, this:
exec > >(tee >(espeak)) that redirects stdout tee process sends espeak process, sending on console or whatever stdout sending before. (for following along @ home, stdout tee process hasn't yet been redirected when starts up, still same before exec command.)
have fun.
to turn off:
exec > /dev/tty
Comments
Post a Comment