Linux shell 脚本技巧介绍.pptxVIP

  • 2
  • 0
  • 约1.7千字
  • 约 11页
  • 2019-03-19 发布于湖北
  • 举报
Shell技巧简介 2013-08 DP技术部—运维—黄河 微博:黄河H2O 目录 字体颜色 Here Documents $x 获取参数、变量默认值 Shell并发控制 Shell debug 字体颜色 ANSI非常规字符序列 字体颜色31-37 背景颜色40-47 echo -e “\033[31mError\033[37m”#红色 echo -e “\033[32mok\033[37m” #绿色 echo -e “\033[33mwarn\033[37m”#黄色 echo -e \033[41;32m 红底绿字 \033[0m tput echo -e “`tput setaf 1`error`tput sgr0`”#红色 echo -e “`tput setaf 2`ok`tput sgr0`” #绿色 echo -e “`tput setaf 3``tput bold`warn`tput sgr0`” #黄色加粗 tput setab [1-7] – Set a background color using ANSI escape tput setaf [1-7] – Set a foreground color using ANSI escape Here Documents commad TheBeginWords …… TheBeginWords Eg:

文档评论(0)

1亿VIP精品文档

相关文档