Ana Sayfa / Linux / Bash Script / Bash Script Grep

Bash Script Grep

How to search a file for a pattern

To find the word foo in the file bar :

grep foo ~/Desktop/bar

To find all lines that do not contain foo in the file bar :

grep –v foo ~/Desktop/bar

To use find all words containing foo in the end (WIldcard Expansion):

grep “*foo” ~/Desktop/bar

Bunada Göz Atın

Python Bitwise Operators

Bitwise operations alter binary strings at the bit level. These operations are incredibly basic and …

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir