PIXNET Logo登入

My Humble House

跳到主文

我的狗窩

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 21 週二 201220:07
  • Linux 如何比較兩個資料夾內的所有檔案 (Linux command to compare all files in two directories)

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/Unix
▲top
  • 8月 21 週二 201212:22
  • vi 如何複製部分a檔案內容至b檔案 (copy part of file a to file b)

Linux command: 
cp a tmp.txt
vi tmp.txt
 
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(248)

  • 個人分類:vi
▲top
  • 8月 21 週二 201211:18
  • vi 的顯示行數與隱藏行數

顯示行數
:set number

隱藏行數
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(17,954)

  • 個人分類:vi
▲top
  • 8月 20 週一 201215:36
  • 如何將剪貼簿的資料用vi貼上到某個檔案 (paste from clipboard to vi)


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)

  • 個人分類:Linux/Unix
▲top
  • 8月 17 週五 201222:06
  • 在 Visual Studio 下如何使用 erfc()

erfc() erf() 這些 function 並沒有定義在 VS 的 cmath 中
 
使用方法:
Step 1. 下載 boost library http://www.boost.org , 解壓縮後把裡面的 boost 資料夾放在下面路徑
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(93)

  • 個人分類:
▲top
  • 8月 14 週二 201214:51
  • vi/vim delete commands

 
 
http://www.devdaily.com/linux/vi-vim-delete-line-commands-to-end
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(56)

  • 個人分類:vi
▲top
  • 7月 30 週一 201212:01
  • vi 如何全部取代 (search and replace all)

:g/AAAA/s//BBBB/g   
就會將全文中出現的AAAA用BBBB取代.
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(2,611)

  • 個人分類:vi
▲top
  • 6月 15 週五 201215:53
  • ncvlog: pre-post-assignment operator: Use -sv switch to enable this SystemVerilog construct. 錯誤的解法

把 for (i=0; i<10; i++) 改成  for (i=0; i<10; i=i+1) 
 
錯誤太白癡了, 難怪都google不太到什麼東西... orz
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(419)

  • 個人分類:
▲top
  • 6月 15 週五 201210:15
  • NCVerilog 錯誤訊息 Illegal operand for constant expression [4(IEEE)] 的解法

Solution:
把 [x : y] 的 range 語法改成 [x +: width] 或 [x -: width]
 
Reason:
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(4,691)

  • 個人分類:EDA
▲top
  • 6月 07 週四 201210:54
  • Notepad++ 如何跳到指定的那一行?

Ctrl G
(繼續閱讀...)
文章標籤

bamil 發表在 痞客邦 留言(0) 人氣(2,698)

  • 個人分類:
▲top
«1...4567»

個人資訊

bamil
暱稱:
bamil
分類:
生活綜合
好友:
累積中
地區:

熱門文章

  • (66,581)Excel 2007 如何畫出有兩個y軸的圖 (兩個y座標軸)
  • (17,954)vi 的顯示行數與隱藏行數
  • (4,691)NCVerilog 錯誤訊息 Illegal operand for constant expression [4(IEEE)] 的解法
  • (3,993)[NC-Verilog] ncelab: *F,CUMSTS: Timescale directive missing on one or more modules. 錯誤訊息的原因
  • (2,611)vi 如何全部取代 (search and replace all)
  • (1,484)Syntax error: Bad fd number 的解決方法
  • (715)Xterm 的 copy / paste
  • (426)Windows 和 Exceed (X window) 之間的 copy / paste
  • (244)ncvlog: *E,UNBERR: (1) unbound instance(s). 的解決方法
  • (62)漢語拼音

文章分類

  • EDA (5)
  • Verilog (1)
  • Matlab (3)
  • Linux/Unix (12)
  • Windows / MS-DOS (3)
  • vi (9)
  • 未分類文章 (1)

最新文章

  • [Design Compiler] "hdl-193" warning: cannot find the design 'XXX' in the library 'work'. (lbr-1)
  • [Vi] 游標跳至列首 (move cursor to beginning of the line)
  • [Vivado] How to change firmware ROM by modifying bitstream (updateMem)
  • [linux] connect to another server with local display (連到另一台主機, 同時把Display參數帶過去)
  • [MATLAB] Pass float/char type data to a C MEX function
  • [MATLAB] MTIMES is not fully supported for integer classes
  • [Linux] How to copy several specific files to one directory (複製多個特定檔案到別的資料夾)
  • [linux] search keyword in files
  • [vi] 統計string出現次數 (count string in vi)
  • [EDA] ERROR:Portability:3 - This Xilinx application has run out of memory

最新留言

  • [22/05/06] 訪客 於文章「Excel 2007 如何畫出有兩個y軸...」留言:
    回饋您這方面資訊,我是從 PTT搜尋引擎的排名,看...
  • [20/11/23] 訪客 於文章「Linux 如何比較兩個資料夾內的所有檔...」留言:
    您好,想請問如果我兩個不同資料夾內的檔案名稱不同,但其餘皆相...
  • [18/07/28] 訪客 於文章「Linux 如何比較兩個資料夾內的所有檔...」留言:
    this post is very use ful h...
  • [16/05/11] bamil 於文章「[EDA] ERROR:Portabil...」留言:
    To restore the setting: bcd...
  • [15/03/05] 有同樣的問題 於文章「[Windows] Chrome 瀏覽器...」留言:
    應該不是這個問題= =...
  • [14/02/07] seetha sweety 於文章「[Matlab] Comment mul...」留言:
    Here's some great news for tho...
  • [14/02/07] KS. KAVITHA 於文章「[Matlab] Comment mul...」留言:
    Some people are naturally bett...
  • [09/05/02] 咖啡達人 於文章「來自香港的 Thomas Wong "教...」留言:
    歡迎來我的部落格坐坐喔 這裡有好康的事情要告訴大家喔 ...
  • [09/01/12] bb 於文章「漢語拼音...」留言:
    恭喜狗窝开张!...

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: