- 博客(9)
- 资源 (1)
- 收藏
- 关注
转载 copy from one array to another
轉載自http://stackoverflow.com/questions/19417015/bash-copy-from-one-array-to-anothera=(foo bar "foo 1" "bar two") #create an arrayb=("${a[@]}") #copy the array in another one
2015-06-30 14:00:07 393
转载 check MAC Address Validation
轉載自https://raam.org/2009/mac-address-validation-regex-with-egrep/MAC Address Validation Regex with egrepI needed an easy way to validate a MAC address in a bash script that generated a uniqu
2015-06-24 16:08:46 525
转载 Length of string in bash
轉載自 http://stackoverflow.com/questions/17368067/length-of-string-in-bash$ myvar="some string"$ echo ${#myvar} 11Just do this:size=${#myvar} To confirm it was properly saved:$ echo $siz
2015-06-24 14:10:18 344
转载 Bash/KSH/SH Shell: Find The Length Of a String On a UNIX, Linux, BSD, and OS X
While writing a shell script you may want to find out the length of a string. While reading GNU expr command man page I found an interesting option as follows:expr length STRINGFor example
2015-06-24 11:07:00 498
转载 macaddr 自動加 ":" 號
1.use seda=0xAA11BBC1D5F1b=$(echo "$a" | sed 's/^0[xX]//;s/\(..\)/\1:/g;s/:$//')echo "$a --> $b"
2015-06-24 10:37:44 384
转载 Effective c++ 3/e item 15 疑問解惑
轉載自http://stackoverflow.com/questions/4728160/thrown-off-by-functor-syntax-in-effective-cThe firstoperator FontHandle() const {return f;}The secondFontHandle operator()() const {ret
2015-06-21 01:25:12 592
转载 How to stop 'uninterruptible' process on Linux?
轉載自http://stackoverflow.com/questions/767551/how-to-stop-uninterruptible-process-on-linuxThe uninterruptable sleep means the process will not be woken up by signals. It can be only woken up by wha
2015-06-15 14:44:15 355
转载 談 Coding Style 與 Naming Convention
轉載自http://blog.yslin.tw/2013/03/coding-style-naming-convention.html工作三年,回頭再來看看一些寫程式的基本 guideline,深深覺得小時候沒學好...一個程式的週期不只有 key in 程式碼而已,包含了requirement、design、implementation、testing、maintenance。有
2015-06-15 14:43:40 517
转载 檔案或目錄損毀而且無法讀取
如果是D槽壞了「開始」->「執行」->「cmd」->「chkdsk D: /f」開始修復。如果是K槽壞了->「cmd」->「chkdsk K: /f」
2015-06-15 14:42:26 1058
Multi-AP specification version 1.0
2019-03-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人