cat test.txt
1test1
2test2
2test

cat test.txt | grep -o -e '1..'
1te

cat test.txt | grep -o -e '1....'
1test

# ^Begin $End
cat test.txt | grep -o -e '^2....2$'
2test2

cat test.txt | grep -o -e '^2....'
2test
2test

cat test.txt | grep -o -e '[0-9][a-zA-Z]*1'
1test1

cat test.txt | grep -o -e '[0-9][a-zA-Z]*2'
2test2

echo "test@test.com test@test.net" | grep -o -E '[a-zA-Z]+@[a-zA-Z]+\.com'
test@test.com

cat test.txt
IRR Valid
211.125.64.0/21 	
Japan
IRR Valid
211.125.72.0/21 
cat test.txt | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'

# daha doğru sonuç veriyor
cat test.txt | sort -u

# rakamsal olarak takılıyor bu nedenle tekil olanları bile silebiliyor normale göre daha az dengeli
cat test.txt | sort | uniq -u

9 Comments

Purchasing Indica Moroccan Cannabis Hash Online In Cork Ireland · 29/10/2024 at 22:25

… [Trackback]

[…] There you can find 30651 additional Information on that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

.. · 05/11/2024 at 10:13

… [Trackback]

[…] Read More on that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

ตรวจสอบบัญชี ภูเก็ต · 11/11/2024 at 02:30

… [Trackback]

[…] Find More on that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

lottorich28 · 12/11/2024 at 19:22

… [Trackback]

[…] Read More on that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

cat888 · 13/11/2024 at 03:40

… [Trackback]

[…] There you can find 36745 more Info to that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

marbo 9000 · 14/11/2024 at 07:01

… [Trackback]

[…] Information on that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

เช่าตู้เกมส์ · 19/11/2024 at 05:22

… [Trackback]

[…] Information on that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

pgslot · 06/12/2024 at 02:34

… [Trackback]

[…] Find More on on that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

altogel · 07/12/2024 at 10:57

… [Trackback]

[…] Find More on to that Topic: durukanbal.com/2022/10/31/bash-grep-search-pattern/ […]

Leave a Reply

Avatar placeholder