': not a valid identifier

后端 未结 4 1028
不知归路
不知归路 2020-12-20 11:03

I have removed the two if statements from before and replaced them with a case statement and tried to remove all the error from the code. I am trying to run this code but i

4条回答
  •  难免孤独
    2020-12-20 11:18

    Replace #!/bin/sh with #!/bin/bash.

    Replace elif[ with elif [.

    Add a fi line above the elif line.

    Add a then line below the elif line.

    Replace -gt with -ge.

    Replace -lt with -le.

    Having done this your o variable may still end up empty, but you can debug that by adding echo +"$x-$n-$p".

提交回复
热议问题