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 $ 


 

posted @ 2017-01-10 22:48  xiluhua  阅读(272)  评论(0编辑  收藏  举报