shell 编程每日100行

xiluhua@localhost ~/tscripts $ echo "hello world !"
-bash: !": event not found
xiluhua@localhost ~/tscripts $ echo 'hello world !'
hello world !
xiluhua@localhost ~/tscripts $ echo 'hello world !' >> t1.sh 
xiluhua@localhost ~/tscripts $ cat t1.sh 
#!/bin/bash
hello world !
xiluhua@localhost ~/tscripts $ vi t1.sh 
xiluhua@localhost ~/tscripts $ chmod +x t1.sh 
xiluhua@localhost ~/tscripts $ ./t1.sh 
Hello world !
xiluhua@localhost ~/tscripts $ sh t1.sh 
Hello world !
xiluhua@localhost ~/tscripts $ /bin/bash t1.sh 
Hello world !
xiluhua@localhost ~/tscripts $ 


原文地址:https://www.cnblogs.com/xiluhua/p/6271146.html