摘要: 编写脚本准备工作 1.熟悉centos中的shell脚本命令:$?,$#,$n,$0,$@,shift,# 2.学习centos基本命令,为shell做准备工作 a>获取文件名 echo 当前文件名:`basename 文件` b>获取文件目录 echo 当前路径:`dirname 文件` $? / 阅读全文
posted @ 2018-12-20 21:14 Vowzhou 阅读(271) 评论(0) 推荐(0)