search

Home  >  Q&A  >  body text

bash - linux shell script to automate manual operations

#!/bin/bash
echo Please enter your name
read NAME
echo "Hi! $NAME !"
echo Please enter your age
read AGE
echo "You are $AGE !"
exit 0

There is a script like this
I want to use another shell script to operate it
I tried echo but I can only enter one, and there seems to be a problem

过去多啦不再A梦过去多啦不再A梦2735 days ago972

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-07-03 11:44:11

    Why need another script to automate manual operations for you?
    This purpose can be achieved completely through Shell EOF

    reply
    0
  • Cancelreply