Time of Update: 2014-07-19
標籤:des style blog http 使用 os 轉載請註明出處:http://blog.csdn.net/hellomxj1/功能:在linux系統上實現wifi STA與AP功能的轉換實現成果:1、添加wifi密碼賬戶add_wifi_account;
Time of Update: 2014-07-18
標籤:des style blog http java color Requirement-Driven Linux Shell ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where can
Time of Update: 2014-06-27
標籤:class tar ext 使用 檔案 art linux中shell變數$#,[email protected],$0,$1,$2的含義解釋: 變數說明: $$ Shell本身的PID(ProcessID) $! S
Time of Update: 2014-07-08
標籤:使用 strong 檔案 shell list ash Bash Shell有個extglob選項。開啟後Shell可以 另外識別出5個模式比對操作符,能使檔案匹配更加方便 。開啟的方法:使用shopt命令:shopt -s extglob關閉的方法:
Time of Update: 2014-07-01
標籤:style blog http color 使用 檔案 shell 字串操作小結 #!/bin/bash############################################
Time of Update: 2014-07-01
標籤:使用 div 字串 shell 指令碼 進程 $0 :指令碼名字$1 - $9 :位置參數 #2 - #9${10} :位置參數 #10$# :位置參數的個數"$*" :所有的位置參數(作為單個字串)"[email protected]" :
Time of Update: 2014-07-10
標籤:使用 檔案 sql amp ar c 1.單行注釋: #echo "Hello World"2.多行注釋: :<<COMMENT tar cvzf $databak_dir$3$DATE‘.sql‘
Time of Update: 2014-06-27
標籤:style blog http color 檔案 2014 最近在瞭解Jenkins時,出現這樣一個問題:linux
Time of Update: 2014-08-12
標籤:使用 div 代碼 應用 程式 編程 on 測試 位置參數可以用shift命令左移。比如shift
Time of Update: 2014-08-07
標籤:blog http 使用 檔案 for html 工作 時間 [轉自]http://blog.chinaunix.net/uid-168249-id-2860686.html引用:一、使用者登陸進入系統後的系統內容變數:&
Time of Update: 2014-08-05
標籤:blog http os strong io 檔案 for 2014 the host may be down,or there may be a problem with the network
Time of Update: 2014-08-04
標籤:shell 練習 指令碼 讀寫權限 學習shell小練習判斷/tmp/lzz 這個目錄是否有讀寫權限,如果沒有則添加許可權#!/bin/bash#name: testdir.sh#authro: orangleliu#date: 2014-08-03#version:
Time of Update: 2014-07-29
標籤:redhat快速部署dhcp伺服器伺服器位址:192.168.1.110 網段:192.168.1.0 子網路遮罩:255.255.255.0 網關:192.168.1.254[[email protected] ~]# cat dhcp.sh #!/bin/bash#auto deploy dhcp server for 192.168.1.0/24 netmask #this script need you have you
Time of Update: 2014-07-18
標籤:style blog color 使用 re c 解析和修改xml用python比較方便,但如果不方便使用python,可以用sed命令簡單替換例如,欲替換下面一行中的連接埠號碼的值:<param name="ftpPort">21</param>可以使用:new_
Time of Update: 2014-07-17
標籤:shell 隨機數 臨時檔案 mktemp 有時候,我們需要建立檔案臨時存放一些輸出的資訊,建立檔案時就可能出現檔案名稱存在的問題。如何建立唯一的檔案名稱,Linux為我們提供幾個方案:1、mktemp(強烈推薦)The mktemp utility ta
Time of Update: 2014-08-12
[Shell]if 常用判斷條件,shellif判斷條件IF 判斷之前也寫過簡單的shell指令碼,也不是轉職營運,和系統相關的工作比較少,所以不怎麼熟練。最近由於系統總是出現各種亂七八糟的問題,也沒有人來協助,只好自己寫shell指令碼了,都是些基礎的指令碼,但由於shell的文法和通常的進階語言有些不一樣,所以還是要系統的看下常用的部分。 if語句就是很重要的一個。這種文章很多,只是拿來主義,如果有心得體會也會加上,小計下以後備查。 基本結構:
Time of Update: 2014-05-13
1:grep命令:grep -v "char" file_name 匹配不包含"char"的文本grep -n -w "char" file_name 完整匹配某個字元grep ^s $s 分別為匹配行首為s的 或者行末為s的文本。2:tr 命令tr set1 set2 替換集合set1 為set2tr -s set1 壓縮字元tr -t ":" 指定分隔字元 預設為空白格tr -d "set"
Time of Update: 2014-04-20
shell程式設計(1)管道和重新導向重新導向重新導向輸出chen123@ubuntu:~/C++$ ls -l >lsoutput.txt這條命令把ls命令的輸出儲存到檔案lsoutput.txt中。檔案描述符0代表一個程式的標準輸入,檔案描述符1代表標準輸出,檔案描述符2代表標準錯誤輸出。在上面的例子中,通過>操作符把標準輸出重新導向到一個檔案。預設情況下,如果該檔案已經存在,它的內容將被覆蓋。使用set
Time of Update: 2014-04-17
準備:1、準備好待安裝的rpm檔案2、將待安裝的rpm檔案寫入檔案清單 pkg.lst(檔案名稱可隨意)3、安裝指令碼 install.sh目錄結構|- install.sh|- pkg.lst|- readme.txt|- xxxx.rpm|- yyyy.rpm|- ......安裝過程:1、將待安裝的rpm檔案放到該目錄2、在rpm檔案清單按依賴順序寫入 pkg.lst 檔案清單列表,一個樣本如下:gcc-c++-4.1.2glibc-2.5-24glibc-common-2.5glibc-
Time of Update: 2014-03-09
1.shell中的函數定義格式為:function name(){#函數體}函數的定義必須遵循先定義在使用的原則,如定義函數print#!/bin/shfunction print(){if [ $# -lt 1 ]then print “no parameter”;return 1;else ehco “$1,$2”;return 0;fi}ehco “print function is being invoked”print上面的return 語句是函數的返回值