Interaktív shell script

Felhasználói INPUT olvasása:

  1. #!/bin/bash
  2. # Ask the user for their name
  3. echo Hello, who am I talking to?
  4. read varname
  5. echo It\'s nice to meet you $varname

最終更新日時: 2021年 11月 7日(Sunday) 19:51