這時可以使用grep
grep -nr "abc" /etc/-n 會印出檔案的行數,
-r 會遞迴的找子資料夾。
"abc" 找abc字串
/etc/ 想找的根目錄
grep -nr "abc" /etc/-n 會印出檔案的行數,
git rebase -i E1
git log --pretty=oneline
git rebase -i 5a64bb08b58e7be39a35a1c35258163f02d27bf3
locate pg_hba.confb) 修改local all all這一行,改為trust
local all all trust2. 重啟PostgreSQL server
sudo /etc/init.d/postgresql restart3. 進入postgres User
sudo su - postgres4. 進入superuser postgres
psql -U postgres5. 使用SQL的ALTER語句修改postgres的密碼
ALTER USER postgres PASSWORD '重設為你要的密碼';6. 將pg_hba.conf修改回來。
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs
sudo dpkg -i code_1.13.1-1497464373_amd64.deb
public class StringSplit{
public static void main(String[] args){
String testStr = "A,B,C,D,E,F,G,H";
for(String str : testStr.split(",")){
System.out.println(str);
}
}
}
結果是A B C D E F G H
public class StringSplit{
int aNumber;
List<Integer> numbers;
}
<style>
li.L0, li.L1, li.L2, li.L3,
li.L5, li.L6, li.L7, li.L8 {
list-style-type: decimal !important;
}
</style>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?lang=css&skin=sunburst"></script>
<style>
li.L0, li.L1, li.L2, li.L3,
li.L5, li.L6, li.L7, li.L8 {
list-style-type: decimal !important;
}
</style>
則是為了顯示所有行號,而不是每五行顯示一次。