echo -e "Hello World! \a \n"     # -e 解析反斜杠


 

read -p "Please input your first name: " firstname # 提示使用者输入


[chen@hang-centos tmp]$ aa2=(4 7 44 8 9)  #定义数组


shell if语句,格式:

  if command
  then
  commands
  fi

eg:

  if ["$a"=="$b"] || ["$c"=="$d"]

  then

  echo "OK!"

  exit 0

  fi


 

ps -ef 查看正在活动的进程

ps -ef |grep abc 查看含有"abc"的活动进程

ps -ef |grep -v abc 查看不含abc的活动进程


 

dd

 

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-23
  • 2021-11-13
  • 2021-08-15
  • 2021-11-17
  • 2021-12-21
  • 2021-09-10
  • 2021-08-14
相关资源
相似解决方案