安装shc
sudo apt install shc
shc -v -f color_script.sh
shc shll=bash
shc [-i]=-c
shc [-x]=exec ‘%s‘ "$@"
shc [-l]=
shc opts=
shc: cc color_script.sh.x.c -o color_script.sh.x
shc: strip color_script.sh.x
shc: chmod go-r color_script.sh.x
会成生 color_script.sh.x和 color_script.sh.x.c的源文件
color_script.sh.x.c这个是C语言写的,在此就不进行粘贴了
./color_script.sh.x
Hello everyone Be happy every day!
但打开文件color_script.sh.x时,发现是乱码