grep 要用-H 強迫顯示檔案,-n顯示檔案的行號
find -L . -name "*.[ch]" -exec grep -Hn --color=auto "內文" {} \;
另一種方法 --with-filename
grep --with-filename 'pattern' file
訂閱:
張貼留言 (Atom)
[Ubuntu 14.04] 遠端桌面使用原生ubuntu14.04桌面
方法1: 1. 要先在原始VGA下打開terminal console 2. 輸入 $ gsettings set org.gnome.Vino require-encryption false ...
-
sudo -E dnf install perl-JSON-PP or sudo -E yum install perl-JSON-PP
-
安裝 pip3 sudo apt-get install python3-pip 設定proxy # cd ~ # mkdir .pip # cd .pip # touch pip.conf # vi pip.conf [global] proxy = ...
-
[視窗分割功能] c+b c 新建視窗 c+b , 更改視窗的名字 c+b w 打開視窗列表 C+b ” 水平分割視窗 C+b % 垂直分割視窗 C+b up or down 切換分割視窗 C+b C上 or C下 分割視窗大小調整 C+b C左 o...
沒有留言:
張貼留言