shell 中 運行參數(shù)手機
_copyright=$(python findIncBizDataFile.py copyright)
可以參考:
cygWin: http://blog.chinaunix.net/u/19782/showart_408547.html
1>. 安裝cygwin,他可以滿足你大部分Linux命令的需要。真是個好東西。
下載的地址為:
http://www.cygwin.com/
完成后設(shè)置 bin 到path中 就ok!
安裝 gvim
gvim72.exe
http://www.vim.org/
grep
文本查找: grep -nr "string with space" ./*
find
find . -name '*[html
!py]'
文件根據(jù)時間:find . -type f -amin +1
find . -name '*c*' -type f -maxdepth 2
find . -name '*ction*.java' -exec cat -n {} ; |less
find + grep
find . -type f -name "*.txt" |xargs grep 'use this' -n
查詢比 file 文件新的.
find . -type f -name "*.txt" -newer ./lib/hadoop-0.18.1/kfs-0.1.LICENSE.txt|xargs grep 'sf' -ln
find+cp
find ./lib -type f -name '*.jar' -exec cp -rf {} ./mn_mod_admin/WebRoot/WEB-INF/lib ;
替換:
find -type f -name Root -exec sed -i 's/59.151.33.197/cvs.xunjienet.cn/g' {} ;
管道:
-ok 每次執(zhí)行會詢問?
-exec 直接運行!
|args 直接運行 但上得結(jié)果默認(rèn)插入后句最后。
gvim 亂碼解決:http://www.cnblogs.com/shipfi/archive/2008/04/07/1140025.html
把以下設(shè)置添加到.vimrc中。
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
language message zh_CN.utf-8
"解決菜單亂碼
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
命令集合:
:ls :n
:edit filename
:split
:vsplit
Ctrl-w w
gvim +11 file.txt
顯示行號:set nu
替換:http://ks.cn.yahoo.com/question/1408012501095.html
:%s/four/4/g
光標(biāo)定位:
整理 m.tkk7.com/Good-Game