Last active
July 13, 2018 16:08
-
-
Save realsby/4b5a20a8097adaa5e0843235a9e694b5 to your computer and use it in GitHub Desktop.
Log arama ve yazdirma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aşağıdaki kod text.file içinde belirli bir metini arar ve kaçıncı satırlarda yer aldığını basar. | |
grep -n Text_Metin text.file | |
Aşağıdaki kod text.file daki 6453 üncü satır ve öncesindeki 3 satırı (toplamda 4 satırı) basar. | |
head -n 6453 text.file | tail -n 4 | |
Binrotada şunlara baktım: | |
grep -n MAL_ /var/log/uwsgi/binrota_pro.log | |
1463:MAL_LOG_KONTROL | |
2921:MAL_LOG_KONTROL | |
3131:MAL_LOG_KONTROL | |
3799:MAL_LOG_KONTROL | |
6868:MAL_LOG_KONTROL | |
7025:MAL_LOG_KONTROL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment