Time of Update: 2014-11-27
標籤:des style blog io ar os 使用 sp for HBase是Google Bigtable的開源實現,它利用Hadoop
Time of Update: 2014-11-27
標籤:continue gateway please rpm -q dhcp &> /dev/nullif [ $? -ne 0 ]thenyum -y install dhcpecho "ddns-update-style interim;ignore client-updates;option domain-name-servers 19
Time of Update: 2014-11-23
標籤:shell script 數學運算 bc expr (()) $[] 在shell
Time of Update: 2014-11-23
標籤:shell linux 變數聲明變數:declare attribute variable#attribute表示變數的屬性,常見的屬性如下:# -i 將變數定義為整數;-a 變數聲明為陣列變數;-r 將變數聲明為唯讀變數;-x
Time of Update: 2014-11-13
標籤:style http io ar os 使用 sp for strong 一、關於本文
Time of Update: 2014-11-14
標籤:shell 特殊字元介紹[54,17] bash本身並不支援Regexregex, 而shell下的有些工具是支援解釋regex的,使用regex的是shell命令和工具, 如grep,sed,awk等.但shell 支援萬用字元,區別於regex,通配是把一個包含萬用字元的非具體檔案名稱擴充儲存在電腦,伺服器或者網路上的一批具體檔案名稱的過程.萬用字元檔案名稱匹配 萬用字元用來匹配檔案名稱,路徑名,包括命令, 通常將四種通配方式組合使用。Linux 檔案名稱可使用除/
Time of Update: 2014-11-13
標籤:style color 使用 sp for strong on 2014 bs 1- echo `date "+%Y-%m-%d %H:%M:%S"`2014-11-13 15
Time of Update: 2014-11-15
標籤:blog io ar for strong on 2014 art log for 列表形式for variable in {list}do statementdonefor
Time of Update: 2014-11-15
標籤:style http io color ar os 使用 sp for Shell也叫做命令列介面,它是*nix作業系統下使用者和電腦的互動介面。Shell這個詞是指作業系統中提供訪問核心
Time of Update: 2014-11-16
標籤:interface network example 流量 sleep #!/bin/bashfunction usage{ echo "use ./test_net.sh ethX time"
Time of Update: 2014-11-10
標籤:style color 使用 sp 檔案 div 代碼 bs amp 1.#!/bin/sh 使用sh程式來執行下邊的代碼 #!/bin/more 輸出下邊的代碼
Time of Update: 2014-11-10
標籤:linux 翻譯 近來在學習linux跟shell指令碼。英文又多年不用還給教師了。遇到不懂的單詞都要開個詞霸網頁詞典來翻譯,久了多有不爽。偶然找到http://www.iteye.com/topic/819440中提到一個翻譯英文單詞的shell指令碼,可惜是多年以前的,並且用的還是如今被牆的Google,當然失效了。translate() { &nbs
Time of Update: 2014-11-04
標籤:指令碼 hadoop 叢集 ssh 最近使用的一個叢集hp1,因為維護叢集的人不給力,節點總是過一段時間就掉一兩個。今天發現重啟hadoop時,HDFS已經進入保護模式了。決定把slaves節點中的無法訪問的節點全部過濾掉,所以寫了一個小指令碼,在這裡記錄一下,以後方便直接拿來使用。PS:用C Shell編寫的代碼如下:#!/bin/cshif (
Time of Update: 2014-10-31
標籤:style blog http 使用 sp strong 檔案 on 2014 變數說明:$$Shell本身的PID(ProcessID)$!Shell最後啟動並執行後台Process的P
Time of Update: 2014-10-31
標籤:second source file 指令碼 first (測試樣本1) #vi first.sh 1#!/bin/bash2echo ‘your are in first file‘ 問)在當前指令檔中調用另外一個指令檔?方法一: 使用 source指令碼 second (測試樣本2)# vi
Time of Update: 2014-10-29
標籤:shell 指令碼 匹配字串 定時執行
Time of Update: 2014-11-25
shell-find錯誤解析,shell-find解析之前寫過一篇文章,用shell定時清除到期檔案《shell定時清除到期檔案》,其實用的就是簡單的find命令後面同事採用之後,他調試指令碼的時候,出現了幾個錯誤,我做了整理:1.find: paths must precede expression: exec運算式不完整,在exec之前加一個執行符號“-”,就好了2.find: missing argument to
Time of Update: 2014-11-19
Linux Shell參數擴充(Parameter
Time of Update: 2014-11-04
shell迴圈loop,shellloop1. 迴圈shell迴圈,不斷執行某段程式,直到符合條件。迴圈分為4種, while迴圈,until迴圈,for固定處理, for數值處理。2. while迴圈while迴圈是一直執行,直到條件不符合,才停止。文法:while [ condition ]do//do somethingdone例: 迴圈直到使用者輸入正確#!/bin/bash# desc : while loopwhile [ "$yn" !=
Time of Update: 2014-11-01
一個修改設定檔的linux shell script,不久以前,曾經搜到一篇部落格是讀取設定檔的,http://www.cnblogs.com/bo083/archive/2012/11/19/2777076.html,用到現在,感覺十分方便,感謝作者。現在,需要通過web介面給使用者留出介面來修改類似設定檔,大的方法是從php調用linux shell script,於是,現在貼一個可以修改此種設定檔的linux