Time of Update: 2014-06-30
標籤:shell bash linux shell
Time of Update: 2014-07-01
標籤:linux下自動化格式分區方法(非互動 可以用於shell指令碼) 自動化格式分區方法----非互動---可用於指令碼要先給使用者一個提示,讓他選擇一個分區來格式化for i in `mount|grep “/dev/sdb”|awk ’{print $1}’` do fuser –km
Time of Update: 2014-06-30
標籤:linux io res file user shell *************************************************************************************************#! /bin/bash #
Time of Update: 2014-07-03
標籤:shell bash 數字時間 在某行或者某個位置,列印出“YY/MM/DD HH:MM:SS”先確定位置再輸出即可註:有關時間格式到問題 %Y: %B: %d %H:%M:%S 定位以及游標到問題: tput cup 10
Time of Update: 2014-07-03
標籤:問題 shell 今天看到一網友觀看老男孩shell視頻後,問了一個問題如下:650) this.width=650;" title="Snap17.jpg" alt="wKioL1Oz8i_gWlLFAAEtVAvr46c745.jpg" src="http://s3.51cto.com/wyfs02/M00/38/8A/wKioL1Oz8i_gWlLFAAEtVAvr46c745.jpg"
Time of Update: 2014-07-02
標籤:檔案 server re rac shell dfs ##1sed -i ‘s/disabled=true/disabled=false/‘ /etc/fdfs/storage.conf##2sed -i ‘s/base_path=\/home\/yuqing\/fastdfs/base_
Time of Update: 2014-07-01
標籤:style blog http color 使用 檔案 shell 字串操作小結 #!/bin/bash############################################
Time of Update: 2014-07-01
標籤:style blog http color 使用 strong 變數的賦值 變數的訪問 變數的輸入 4.1 變數的賦值 在Shell編程中,所有的變數名都由字串組成,並且不需要對變數進行聲明。要賦值給一個變數,其格式如下:
Time of Update: 2014-07-01
標籤:查看檔案日期指令碼 自動殺死進程指令碼 讀取檔案內容指令碼 ? 讀取檔案的時間#!/bin/bashfor file in `ls /root`do stat $file>1.txtsed -n "7p" 1.txt>2.txtusetime= awk -F ":"
Time of Update: 2014-07-01
標籤:style blog http color 使用 strong 編寫Shell程式 執行Shell程式
Time of Update: 2014-07-01
標籤:style blog http color 使用 strong 位置參數 內部參數 如同ls命令可以接受目錄等作為它的參數一樣,在Shell編程時同樣可以使用參數。Shell程式中的參數分為位置參數和內部參數等。 3.1 位置參數 由系統提供的參數稱為位置參數。位置參數的值可以用$
Time of Update: 2014-07-01
標籤:style blog http color 使用 strong Shell命令列的書寫規則 對Shell命令列準系統的理解有助於編寫更好的Shell程式,在執行Shell命令時多個命令可以在一個命令列上運行,但此時要使用分號(;)分隔命令,例如:
Time of Update: 2014-06-30
標籤:shell1. 尋找目前的目錄中所有大於 500M 的檔案 , 把這些檔案名稱寫到一個文字檔file中,並統計其個數。find / -size +500M -type f | tee /root/file.txt | wc -l 或者find / -size +50M -
Time of Update: 2014-06-30
標籤:blog http 使用 檔案 os art shell之文本過濾(grep)分類: linux shell指令碼學習2012-09-14
Time of Update: 2014-06-30
標籤:blog http 使用 檔案 os art 為何使用Shell指令碼分類: linux shell指令碼學習2012-09-12 17:18 78人閱讀 評論(0) 收藏 舉報shell指令碼任務工作 &
Time of Update: 2014-06-30
標籤:blog http 使用 檔案 os art shell之文本過濾(Regex)分類: linux shell指令碼學習2012-09-14
Time of Update: 2014-06-29
標籤:des style blog http color get 一. 介紹 HBase是一個分布式的、面向列的開來源資料庫,源於google的一篇論文《bigtable:一個結構化資料的分布式儲存系統》。HBase是Google
Time of Update: 2014-06-30
標籤:des style http strong os cti In Gnome 3, gnome-shell is used for displaying the top bar. The widgets can be installed online from
Time of Update: 2014-07-01
這個小程式,雖然簡單,,但是新手第一個用心寫的shell指令碼,,考慮因素較為齊全,但是有些出錯沒有進行處理,,#!/bin/bash#auth :dhhclearaddr=/etc/yum.repos.dmkdir $addr/bf >/dev/null 2>&1mv $addr/*.repo $addr/bftouch $addr/localyum.reporead -p " 輸入你想掛載yum源的目錄:" addr2mkdir $addr2 >
Time of Update: 2014-07-01
1. 先介紹下alias(別名)的用法 alias la='ls -a' alias b='cd ..' 等等 alias 是個好東西,可以在用shell時省很多時間2. 但有一天我發現執行shell指令碼的時候,if 語句不能用了,會報以下錯誤: bash: build/envsetup.sh: line 30: syntax error near unexpected token `