Linux komut satırından sunucu bilgilerini görüntülemek için;
dmidecode | grep -A5 '^System Information'
Monday, May 6, 2019
grep
grep komutunda aranan bir ifadenin 2 üst, 3 alt satırını da görüntülemek için;
grep -B2 -A3 ifade test.txt
-B : before context
-A : after context
-C : output context
grep komutunda aranan bir ifadenin 2 alt, 2 üst satırını da görüntülemek için;
grep -C2 ifade test.txt
lspci -vmm|grep -C3 '^Class.*Ethernet'
grep -B2 -A3 ifade test.txt
-B : before context
-A : after context
-C : output context
grep komutunda aranan bir ifadenin 2 alt, 2 üst satırını da görüntülemek için;
grep -C2 ifade test.txt
lspci -vmm|grep -C3 '^Class.*Ethernet'
Subscribe to:
Comments (Atom)
