Time of Update: 2014-09-22
標籤:http io os ar for sp on c html 分兩個部分一、安裝B-shell解譯器安裝cygwin
Time of Update: 2014-09-10
標籤:shell Regex bash linux下shell中的case名字和C/C++中的switch類似,但是shell中的case更強大和複雜。1、強大主要體現在:shell中case中的關鍵字可以是字串類型,而每一項中可以包含Regex。2、複雜主要體現在:shell中case的每一個項後有三個選擇:break(常規的break)、unconditiona
Time of Update: 2014-09-29
標籤:關於shell指令碼的排錯今天寫了一個shell監控的指令碼主要通過shell 指令碼結合zabbix 來監控keepalived的運行狀態。 直接說指令碼指令碼名字: check_keepalived.sh #!/bin/bashUNM=`ps -ef|grep keepalived|wc -l`if [ $UNM -gt 2 ] ;then&nbs
Time of Update: 2014-09-26
標籤:bash基礎及配置 標準i/o 管道 shell編程基礎1、Bash基礎及配置站在使用者的角度來講,SHELL的類型:登入式shell正常通過某終端登入su - USERNAMEsu -l USERNAME非登入式shellsu USERNAME圖形終端下開啟的虛擬終端自動執行的shell指令碼bash的設定檔:全域配置:/etc/profile, /etc/profile.d/*.sh , /etc/bashrc個人配置:~/.bash_profile,
Time of Update: 2014-09-23
標籤:io 使用 ar strong for 檔案 資料 sp on 備忘:一些與傳遞給shell的參數相關的變數:$# 命令列參數的個數$? 調用命令的傳回值$$ 當前進程的進程號$!
Time of Update: 2014-09-19
標籤:style blog http color io 使用 ar for 檔案 本人也是初學習Liunx,如有錯誤請指出。Liunx版本:Ubuntu
Time of Update: 2014-09-19
標籤:style blog http color io os ar div art 以“#”開頭的行就是注釋,會被解譯器忽略。sh裡沒有多行注釋,只能每一行加一個#號。只
Time of Update: 2014-09-19
標籤:style io os ar strong for div sp cti Any shell script you run has access to (inherits) the
Time of Update: 2014-09-14
標籤:style 使用 檔案 sp 代碼 on c 工作 時間 首先要查看自己所使用的shell是那種shell echo $SHELL BASH
Time of Update: 2014-09-09
標籤:linux shell eval exec bash script 由於工作上的需要,花了點時間,研究了一下eval和exec這兩個shell內建特殊的命令。因為用的不是很多,所以還是有一點比較隱晦的。。1.eval
Time of Update: 2014-09-07
標籤:blog http ar 2014 log c r images tt 昨天為了配置snmp監控,將幾台ESXI 5.5主機的shell
Time of Update: 2014-08-30
標籤:指令碼 sed cut 【著作權聲明:轉載請保留出處:blog.csdn.net/gentleliu。Mail:shallnew at 163 dot com】cut命令類似於awk,從行裡面抽取資訊,是一個功能弱化版的awk。cut命令格式為:cut [options] filename其中options有:-d 指定與空格和t a
Time of Update: 2014-08-27
標籤:style blog color 使用 for ar div log sp 入門層級入門層級:類似1,2,3,4,5這樣的字串#!/bin/bashvar="1,2,3,4,5"var=$
Time of Update: 2014-08-27
標籤:blog 使用 for ar 代碼 html log on new 【著作權聲明:轉載請保留出處:blog.csdn.net/gentleliu。Mail:shallnew at 163
Time of Update: 2014-08-20
標籤:style blog 使用 io strong 檔案 資料 for 函數可以讓我們將一個複雜功能劃分成若干模組,讓程式結構更加清晰,代碼重複利用率更高。像其他程式設計語言一樣,Shell 也支援函數。Shell
Time of Update: 2014-08-15
標籤:kvm_install and shell#!/bin/bash/etc/init.d/NetworkManager stopchkconfig NetworkManager offservice iptables stopchkconfig iptables offsetenforce 0LANG=en.UF-8yum -y groupinstall "Virtualization" "Virtualization Client" "Virtualization Platform"
Time of Update: 2014-08-15
標籤:shell sed awksed命令sed只是對緩衝區中原始檔案的副本進行編輯,不改變源檔案,所以要儲存則要重新導向到另一個檔案sed三種方式:1.sed [選項] ‘sed命令‘ 輸入檔案2.sed [選項] -f sed指令檔 輸入檔案3../sed指令檔 輸入檔案其中3的sed指令檔要以#! bin/sed -f等開頭選項:-n 不列印所有行到標準輸出,預設先列印匹配的再列印所有-e 關聯多個sed命令-f 調用sed指令檔定位文本:x x為指定行號x,y
Time of Update: 2014-08-13
標籤:style os io 檔案 linux line window windows ----------------------------------------------------------------------
Time of Update: 2014-09-29
Shell編程入門(第二版)(中),shell編程入門變數測試語句-test作用:用來測試變數是否相等,是否為空白,檔案類型等。格式:test 測試條件 或 []#範圍:整數,字串,檔案 1)整數測試: test int1 -eq int2 測試整數是否相等 test int1 -ge int2 測試int1是否>=int2 te
Time of Update: 2014-09-13
shell學習之()與{}的使用在 shell command line 中,一般人或許不太計較 ( ) 與 { } 這兩對符號的差異,雖然兩者都可將多個命令作群組化處理,但若從技術細節上,卻是很不一樣的:( ) 將 command group 置於 sub-shell 去執行,也稱 nested sub-shell。{ } 則是在同一個 shell 內完成,也稱為 non-named command group。在 bash shell 中,$( ) 與 ` ` (反引號)