反正就是一整個好玩!!!(  ̄ c ̄)y▂ξ
目前分類:ShellScript (5)
- Oct 28 Thu 2010 21:19
javascript+wscript 掛載網路磁碟机
- Jan 29 Fri 2010 14:26
[shell script] 雜記
記錄執行時間
#!/bin/sh before="$(date +%s)" #./cmd sleep 3 after="$(date +%s)" elapsed_seconds="$(expr $after - $before)" echo Elapsed time for code block: $elapsed_seconds |
Ruby 一行文
ruby -e "s=Time.now ; sleep 2.5; p (s-Time.now).abs" |
bash的printf
a=99 ; printf "%03d\n" $a |
- Feb 03 Tue 2009 01:31
[RE]正規表達Regular Expression
RE!
- Jan 15 Thu 2009 00:03
[shell script]計算陣列數
- Jan 14 Wed 2009 23:53
[shell script]傳值進function的方法
#!/bin/sh sum() { sum 4 7 |
http://www.tech-recipes.com/bourne_shell_scripting_tips541.html