Time of Update: 2017-04-24
標籤:linux 常用命令 for迴圈applist=(app1 app2 app3);for app in ${applist[@]};do echo $app;done;擷取IP地址ifconfig |grep -Po
Time of Update: 2017-04-24
標籤:第一章 協助文檔 操作 inf 登入shell 修改 nbsp 介面 概念 今天寫blog才發現以前還有沒寫起的,我的天,我是睡著了麼。。。 1,什麼是shell?shell是unix/
Time of Update: 2017-04-24
標籤:pat migration shell指令碼 logs exit lang 指令碼 shel ttl #!/bin/bashexport
Time of Update: 2017-04-24
標籤:zabbix 自動化 #!/bin/bash#auto install zabbix#by max 2017ZABBIX_SOFT="zabbix-2.0.6.tar.gz"INSTALL_DIR="/usr/local/zabbix/"SERVER_IP="192.168.0.100"IP=`ifconfig|grep Bcast|awk ‘{print $2}‘|sed
Time of Update: 2017-04-24
標籤:conf profile 存在 天前 else passwd lis 間隔 時鐘 1、Regex 1)^開始 *前一個字元重複0次以上
Time of Update: 2017-04-20
標籤:基礎知識 linux 運算式 在shell指令碼編程中算術運算無疑是十分重要的; bash中執行整數算數運算的命令是let,其文法格式為: let arg... arg為單獨的算術運算式如+,-,*,/,%,^等所構成的完整的算術運算式; 其中^為平方運算,如2^3表示2的三次方; let命令可以使用如下方式替代:&
Time of Update: 2017-04-24
標籤:select迴圈select單獨使用cat select01.sh #!/bin/bashecho "Which car do you prefer?"select CAR in Benz Audi VolksWagendo breakdoneecho "You&nbs
Time of Update: 2017-04-24
標籤:使用 project source 格式 average 簡訊 退出 get 項目 1.
Time of Update: 2017-04-22
標籤:第一條 字串 最大匹配 bsp post 方法 txt 字元 功能 轉自:Linux shell ${}簡單用法 為了完整起見,我這裡再用一些例子加以說明 ${ }
Time of Update: 2017-04-20
標籤:shell變數 特殊位置變數 特殊擴充變數本文講解shell變數知識進階。以下為知識點的總結,關於練習,本文不不涉及,還需要各位小夥伴自己練習!1.shell中的特殊位置參數變數,請見下表:650) this.width=650;" width="600" height="276" title="shell6.png" style="width:600px;height:276px;" alt="wKiom1j2-b3zkLsbAAEIRq4FUTI660.png" src="https:
Time of Update: 2017-04-24
標籤:awk簡介awk是一個強大的文本分析工具,相對於grep的尋找,sed的編輯,awk在其對資料分析並產生報告時,顯得尤為強大。簡單來說awk就是把檔案逐行讀入,以空格為預設分割符將每行切片,切開的部分再進行各種分析處理。使用方法:awk [option] ‘pattern1{action1}pattern2{action2}‘
Time of Update: 2017-04-20
標籤:false 習題 linu echo for迴圈 個數 空格 數字 shell [[email protected] ~]# cat sanjiaoxing.sh #!/bin/
Time of Update: 2017-04-23
標籤:退出 控制 min log 內部命令 ack 開始 shell操作 blank 參考自 Linux命令大全查看shell命令是否是shell內建命令,可使用type來判斷:$
Time of Update: 2017-04-18
標籤:技術 exec 大於 name at命令 大於等於 span 分享 檔案內容 文章來自於我的個人部落格:(linux shell)第二章--命令之樂(一)
Time of Update: 2017-04-18
標籤:位置 標準輸出 roo 空格 插入 oda oca enter鍵 雙引號 反引號位 (`)
Time of Update: 2017-04-21
標籤:shell lamp #!/bin/bashcat <<EOF# auto install lamp env# by author max# 2017-03-20EOFAPACHE_SOFT="httpd httpd-devel"MYSQL_SOFT="mariadb-server mariadb mariadb-devel"PHP_SOFT="php php-mysql
Time of Update: 2017-04-20
標籤:shell#!/bin/bashfor i in `cat /home/lee/hosts`dossh -i /home/lee [email protected]$i "free -m >/root/${i}_memory.txt ;/bin/hostname >>/root/${i}_memory.txt"sleep 1scp -i /home/lee
Time of Update: 2017-04-19
標籤:一模一樣 變數 支援 bre 第一個 定義 source 使用 儲存 #! /bin/sh尋找shell解譯器 /bin/sh 是一個路徑#!
Time of Update: 2017-04-18
標籤:模式 targe -o shel startup webapps epo -- ide 第一次寫Shell指令碼,沒經驗,是直接寫呢,還是要走流程( ̄▽ ̄)~*--------------
Time of Update: 2017-04-18
標籤:http blog join iss sts size cut 執行 馬鈴薯 視頻連結 馬鈴薯: B站: 本章目錄:1. Bash shell1.1