diff -qr dirA dirB |grep -v -e keyword1 -e keyword2 |sort > diffs.txt
diff -r : recursively compare all files and files in subdirectories
diff -q : output only whether files differ
bamil 發表在 痞客邦 留言(2) 人氣(14,178)
Linux command:
cp a tmp.txt
vi tmp.txt
bamil 發表在 痞客邦 留言(0) 人氣(248)
bamil 發表在 痞客邦 留言(0) 人氣(17,954)
Press the "Escape" key to enter command mode.
Press the double-quote character (") to enable pasting from a buffer or register
Press the asterisk key (*) to select the system clipboard as the buffer from which to paste.
Press "p" to paste the text from the clipboard
bamil 發表在 痞客邦 留言(0) 人氣(237)
erfc() erf() 這些 function 並沒有定義在 VS 的 cmath 中
使用方法:
Step 1. 下載 boost library http://www.boost.org , 解壓縮後把裡面的 boost 資料夾放在下面路徑
bamil 發表在 痞客邦 留言(0) 人氣(93)
http://www.devdaily.com/linux/vi-vim-delete-line-commands-to-end
bamil 發表在 痞客邦 留言(0) 人氣(56)
:g/AAAA/s//BBBB/g
就會將全文中出現的AAAA用BBBB取代.
bamil 發表在 痞客邦 留言(0) 人氣(2,611)
把 for (i=0; i<10; i++) 改成 for (i=0; i<10; i=i+1)
錯誤太白癡了, 難怪都google不太到什麼東西... orz
bamil 發表在 痞客邦 留言(0) 人氣(419)
Solution:
把 [x : y] 的 range 語法改成 [x +: width] 或 [x -: width]
Reason:
bamil 發表在 痞客邦 留言(0) 人氣(4,691)
bamil 發表在 痞客邦 留言(0) 人氣(2,698)