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

Última modificación: Sunday, 7 de November de 2021, 19:51