Variable Syntax Error with Bash Script (Homework)

后端 未结 5 545
轻奢々
轻奢々 2020-12-11 11:07

I\'m currently working on homework for a Unix course and I\'ve got everything else done but I just can\'t figure out what I\'ve done wrong here. I\'ve done this exact same s

5条回答
  •  执笔经年
    2020-12-11 11:27

    The error is actually on the interpreter line:

    #/!bin/bash
    

    is not the same as

    #!/bin/bash
    

    Once I actually had the script running in bash it was just a few minor syntax errors and I was done.

提交回复
热议问题