鍍金池/ 問答/Linux  HTML/ shell 中執(zhí)行命令提示“command not found”

shell 中執(zhí)行命令提示“command not found”

shell 的定義:

#!/bin/bash

res=`2222222222 | md5sum | cut -d ' ' -f1`

echo "res: " ${res}

寫在文件里運(yùn)行結(jié)果如下:

./sh-test.sh: line 3: 2222222222: command not found
res:  d41d8cd98f00b204e9800998ecf8427e

想請教一下,為什么會提示 command not found?

回答
編輯回答
耍太極
#!/bin/bash

res=`echo 2222222222 | md5sum | cut -d ' ' -f1`

echo "res: " ${res}
2017年10月24日 18:30