Getting “command not found” error while comparing two strings in Bash

后端 未结 4 1800
失恋的感觉
失恋的感觉 2020-11-22 12:19

My whole Script is currently this:

#!/bin/sh   
clear;   
blanko=\"\";   
# Dummy-Variablen
variable=Testvariable;   
if [[$variable == $blanko]];
then   
           


        
4条回答
  •  爱一瞬间的悲伤
    2020-11-22 13:13

    Just use #!/bin/bash on tope of script if you are using bash scripting like: if [[ $partition == "/dev/sda2" ]]; then to compare string and run script with ./scriptname.sh or bash scriptname.sh

提交回复
热议问题