Hacky implementation of pipes in shell