difffork還提供shell方式開啟軟體可以軟鏈到/usr/local/bin/difffork
但是beyondcompare可以通過shell方式正確開啟,但是mac下的beyondcompare對中文不友好所以就用difffork了。
shell呼叫方式:
#!/bin/bashoriginal_path="$1"
modified_path="$3"
/usr/local
/bin/bcompare
"$original_path"
"$modified_path"
(*diff v: diff
diff item : the old item.
against item : the new item.
*) set
theold
to(choose file
with
prompt
"select old:"
) set
thenew
to(choose file
with
prompt
"select new:"
) activate
diff theold against thenew
endtell
#!/bin/bash下面是beyondcompare的呼叫方式:-e "activate"
-e "diff \"$1\" against \"$3\""
-e 'end tell'
#!/bin/bashoriginal_path="$1"
modified_path="$3"
/usr/local
/bin/bcompare
"$original_path"
"$modified_path"
大學嵌入式的3個cornerstone
大二的那個寒假,和遠爺留校幫文老師整理出書的資料。正是這個寒假,邁出了嵌入式有意義的一步,一直影響了整個大學的學校方向。這個搞了兩個多星期,還好最後沒有放棄。真是幸運啊。這正是嵌入式的萌芽期!附圖 寒假有時無聊,做了個 音箱 看電影,效果還不錯的!第二個cornerstone 兩人的發展期。正是這個...
mysql新增外來鍵
為已經新增好的資料表新增外來鍵 語法 alter table 表名 add constraint fk id foreign key 你的外來鍵欄位名 references 外表表名 對應的表的主鍵欄位名 例 alter table tb active add constraint fk id fo...
mysql新增外來鍵
為已經新增好的資料表新增外來鍵 語法 alter table 表名 add constraint fk id foreign key 你的外來鍵欄位名 references 外表表名 對應的表的主鍵欄位名 例 alter table tb active add constraint fk id fo...