shelllings

a practical way to learn shell
Log | Files | Refs | README | LICENSE

02_variables.sh (401B)


      1 #!/bin/sh
      2 
      3 # Assigning variables in shell go like this
      4 #
      5 # $ project="shellling"
      6 # $ echo "Welcome to $project" # output: Welcome to shellling
      7 #
      8 # Notice that there are no spaces around the '=', and the '$' is being
      9 # used in the echo command. 
     10 #
     11 # Fix the command below
     12 
     13 name = Bob
     14 echo "Hello name" # this is a comment too, the program will ignore this
     15                   # because of the pound sign