Linux中使用shell脚本向文件中写数据

之前没写过shell脚本,懂得一些Linux的操做命令。看了网上一些shell脚本的方法。总结,发现用脚本将一些数据写入文件比较实用。遂举例以下: #!/bin/bash #Test echo "This is shell to test" cd /home/wxy/shell/ if [ -f 11];then rm -r 11 fi vim 11 echo "wxy" >> 11 echo
相关文章
相关标签/搜索