Time of Update: 2014-10-14
標籤:style blog color 使用 sp div on log bs until 迴圈執行一系列命令直至條件為 true 時停止。until 迴圈與 while
Time of Update: 2014-10-15
標籤:shell 萬用字元 元字元 逸出字元 一、linux shell萬用字元(wildcard)萬用字元是由shell處理的(不是由所涉及到命令語句處理的,其實我們在shell各個命令中也沒有發現有這些萬用字元介紹),
Time of Update: 2014-09-24
標籤:io 使用 ar for 檔案 資料 sp on c 在shell指令碼中處理linux輸入主要有三種形式:1)將他們像命令列參數一樣處理,通過對應的位置參數來擷取對應的輸入參數2)通過g
Time of Update: 2014-09-22
標籤:http io os ar for sp on c html 分兩個部分一、安裝B-shell解譯器安裝cygwin
Time of Update: 2014-09-03
標籤:blog http os ar 檔案 art 問題 sp log 方法一:修改/etc/sysconfig/i18n 檔案把裡面的LANG="en_US"改成
Time of Update: 2014-08-19
標籤:shell編程 比較操作符 bash編程 字串操作 參數設定 在Linux shell編程中,經常會用到判斷字串是否相等,可用於判斷字串是否相等的操作符有‘-eq’(相等), ‘-ne’(不等於), ‘-lt’(小於), ‘-le’(小於或等於), ‘-gt’(大於)或‘-ge’(大於或等於),以及=,==,!=,<
Time of Update: 2014-08-08
標籤:linux shell作為linux系統營運或者linux下的資料庫DBA,很多時候需要寫一些指令碼來幫組我們實現某些需求,如果指令碼內的某些內容能夠試下平行處理,將大大提高工作的速度。不多說,上指令碼先舉一個順序執行的例子:[[email protected] test]# cat test.sh#!/bin/bashfor i in {1..5};dosleep 1 ; echo "hello"done[[email protected] test]# time
Time of Update: 2014-08-03
標籤:des style blog color io 檔案 2014 cti 1 #!/bin/bash - 2 #======================================================
Time of Update: 2014-10-01
標籤:style blog http color os 使用 ar 檔案 sp 最近因為編譯一些檔案,剛開始接觸一些shell命令,感覺很神奇,用途還蠻大的,所以做了一些筆記,命令的順序可能比較
Time of Update: 2014-09-23
標籤:io 使用 ar strong for div sp 問題 cti 關於shell中的for迴圈用法很多,一直想總結一下,今天網上看到上一篇關於for迴圈用法的總結,感覺很全面,所以就轉過
Time of Update: 2014-09-22
標籤:shell指令碼 source 如果使用source或者“.”號執行shell指令碼(例如叫son.sh),指令碼中的所有語句會被作為當前父shell進程的一部分運行。如果son.sh的執行語句source son.sh 或 .
Time of Update: 2014-09-22
標籤:des io 檔案 資料 sp on c linux ad shell操作命令:hdfs的路徑,在core-site.xml中定義 <property><nam
Time of Update: 2014-09-22
標籤:style color io 使用 ar 檔案 div sp art
Time of Update: 2014-09-20
標籤:style http os 使用 ar strong 檔案 資料 div 什麼是 Shell scriptsshell script (程式化指令碼) :shell script 是針對
Time of Update: 2014-09-14
標籤:des blog http io ar 檔案 div sp log Shell判斷檔案是否存在 #!/bin/sh#shell判斷檔案,目錄是否存在或者具有許可權myPath="/var/
Time of Update: 2014-08-17
標籤:style http color 使用 os io strong for Shell 擷取參數的方式寫shell指令碼的時候,往往需要從外部擷取參數,例如:$ sh demo.sh
Time of Update: 2014-08-01
標籤:software windows password linux expect Expect是一個用來實現自動互動功能的軟體套件(Expect [is a] software suite for automating interactive
Time of Update: 2014-08-01
標籤:command shell 指令碼 進度條 不多說,直接上指令碼。# processbar <current> <total>processbar() { local current=$1; local total=$2; local maxlen=80; local barlen=66; local perclen=14;
Time of Update: 2014-11-09
使用自動化shell指令碼尋找CPU使用的詳細線程資訊,shell指令碼項目加了些攔截器代碼後,CPU警示,顯示CPU使用率超過100%;想要尋找到底是哪些代碼消耗的資源過多,從網上找到一篇博文,轉載如下:http://blog.csdn.net/guixunlong/article/details/8450897在知道哪個Java進程CPU佔用率過高以後:1.使用命令 jstack PID 命令列印出CPU佔用過高進程的線程棧,例如jstack 12012 >
Time of Update: 2014-08-12
[Shell]判斷目前使用者判斷目前使用者是否為root,如果是提示為root使用者,如果不是提示為普通使用者#!/bin/bash#title: testus.sh#author: orangleliu#date: 2014-08-09#desc: get current user, if it is root user, tell us it is super user or tell us is a common user#================#Function