How to pass the value of a variable to the stdin of a command?

后端 未结 9 561
無奈伤痛
無奈伤痛 2020-11-27 14:44

I\'m writing a shell script that should be somewhat secure i.e. does not pass secure data through parameters of commands and preferably does not use temporary files. How can

9条回答
  •  攒了一身酷
    2020-11-27 14:50

    (cat <

    The cat is not really needed, but it helps to structure the code better and allows you to use more commands in parentheses as input to your command.

提交回复
热议问题