-
VIM編輯器設置 1、設置方式分類 臨時性的設置(末行模式設置) 永久性的設置(修改vimrc文件) 2、高亮模式設置: syntax on/off(末行模式下,臨時生效)末行模式“:/syntax”可以搜索到syntax所在位置 /etc/vimrc或家目錄下/home/jeson/.vimrc(添加syntax on/off,設置永久的,其中在用戶家目錄設置的只對該用戶保存永久設置)查看全部
-
腳本作用:查看全部
-
shell中的關聯數組查看全部
-
數組例1查看全部
-
Shell中的關聯數組查看全部
-
Shell關聯數組查看全部
-
Shell高亮顯示查看全部
-
vim常用設置1查看全部
-
vim常用設置查看全部
-
syntax on set number查看全部
-
場景控制腳本(下) vi monitor_man.sh ------------- #!/bin/bash resettem=$(tput sgr0) declare -a ssharray i=0 numbers="" for script_file in `ls -I "monitor_man.sh" ./` do echo -e "\e[1;35m" "The Script:" ${i} '==>' ${resettem} ${script_file} ssharray[$i]=${script_file} # echo ${ssharray[$i]} numbers="${numbers} | ${i}" i=$(($i+1)) done #echo ${numbers} while true do read -p "Please unput a number [ ${numbers} ]:" execshell # echo ${execshell} if [[ ! ${execshell} =~ ^[0-9]+ ]];then exit fi # /bin/sh ./${ssharray[$execshell]} echo ${ssharray[$execshell]} done查看全部
-
場景控制腳本(上) vi monitor_man.sh ------------- #!/bin/bash resettem=$(tput sgr0) declare -A ssharray i=0 numbers="" for script_file in `ls -I "monitor_man.sh" ./` do echo -e "\e[1;35m" "The Script:" ${i} '==>' ${resettem} ${script_file} i=(($i+1)) done查看全部
-
shell中的關聯數組 1、關聯數組分類: 1)普通數組:只能使用整數作為數組索引 2)關聯數組:可以使用字符串作為數組索引 2、使用說明: 1)申明關聯數組變量 #declare -A ass_array1(#declare -A +數組變量) 2)數組名[索引]=變量值 #ass_array1[idex1]=pear查看全部
-
shell高亮顯示 echo -e 終端顏色+顯示內容+結束后的顏色 echo -e '\e[1;31m ning \e[1;0m'查看全部
-
場景腳本結構查看全部
舉報
0/150
提交
取消