Skip to main content
added 93 characters in body
Source Link

I have a mixed wordlist as an input:

azert12345
a1z2e3r4t5
a1z2e3r455

The command line I have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

What do I want to accomplish:

Print only these words: "azert12345" and "a1z2e3r4t5", using grep with a pattern like I said before. Something like grep -E "[[:digit:]]{5}".

It is easy to print words like "azert12345" using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digits of 5 and a maximum number of alphabetical characters as 5, but the problem is: How am I going to print the mixed ones like this one a1z2e3r4t5?

The "a1z2e3r4t5" is just an example the mount of data i should deal with is so much biger

This problem is driving me to crazy for 3 days, and it is not a homework. I'll start learning again more about linux commands. I need some help.

I have a mixed wordlist as an input:

azert12345
a1z2e3r4t5
a1z2e3r455

The command line I have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

What do I want to accomplish:

Print only these words: "azert12345" and "a1z2e3r4t5", using grep with a pattern like I said before. Something like grep -E "[[:digit:]]{5}".

It is easy to print words like "azert12345" using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digits of 5 and a maximum number of alphabetical characters as 5, but the problem is: How am I going to print the mixed ones like this one a1z2e3r4t5?

This problem is driving me to crazy for 3 days, and it is not a homework. I'll start learning again more about linux commands. I need some help.

I have a mixed wordlist as an input:

azert12345
a1z2e3r4t5
a1z2e3r455

The command line I have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

What do I want to accomplish:

Print only these words: "azert12345" and "a1z2e3r4t5", using grep with a pattern like I said before. Something like grep -E "[[:digit:]]{5}".

It is easy to print words like "azert12345" using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digits of 5 and a maximum number of alphabetical characters as 5, but the problem is: How am I going to print the mixed ones like this one a1z2e3r4t5?

The "a1z2e3r4t5" is just an example the mount of data i should deal with is so much biger

This problem is driving me to crazy for 3 days, and it is not a homework. I'll start learning again more about linux commands. I need some help.

I have a mixed wordlist as an input:

azert12345
a1z2e3r4t5
a1z2e3r455

theThe command line iI have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

whatWhat do iI want to accomplish  :

printPrint only these words azert12345: "azert12345" and a1z2e3r4t5"a1z2e3r4t5", using grepgrep with a pattern like iI said before something. Something like (grep -E "[[:digit:]]{5}"), itgrep -E "[[:digit:]]{5}".

It is easy to print words like azert12345"azert12345" using grep -E "[[:alpha:]]{5}[[:digit:]]{5}"grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digitdigits of 5 and a maxumummaximum number of alphabetalphabetical characters as 5, but the problem is how: How am iI going to print the mixed ones like this one a1z2e3r4t5 this probleme?

This problem is driving me to crazy for 3 days, and it is not a homework i. I'll start learning egainagain more about linux commands i. I need some help.

I have a mixed wordlist as an input

azert12345
a1z2e3r4t5
a1z2e3r455

the command line i have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

what do i want to accomplish  :

print only these words azert12345 and a1z2e3r4t5 using grep with a pattern like i said before something like (grep -E "[[:digit:]]{5}"), it is easy to print words like azert12345 using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digit of 5 and a maxumum number of alphabet as 5 but the problem is how am i going to print the mixed ones like this one a1z2e3r4t5 this probleme is driving me to crazy for 3 days and it is not a homework i start learning egain more about linux commands i need some help

I have a mixed wordlist as an input:

azert12345
a1z2e3r4t5
a1z2e3r455

The command line I have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

What do I want to accomplish:

Print only these words: "azert12345" and "a1z2e3r4t5", using grep with a pattern like I said before. Something like grep -E "[[:digit:]]{5}".

It is easy to print words like "azert12345" using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digits of 5 and a maximum number of alphabetical characters as 5, but the problem is: How am I going to print the mixed ones like this one a1z2e3r4t5?

This problem is driving me to crazy for 3 days, and it is not a homework. I'll start learning again more about linux commands. I need some help.

added 7 characters in body
Source Link
Nasir Riley
  • 12.4k
  • 2
  • 26
  • 30

I have a mixed wordlist as an input

  • azert12345
  • a1z2e3r4t5
  • a1z2e3r455
azert12345
a1z2e3r4t5
a1z2e3r455

the command line i have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

cat file.txt | grep -E "[[:digit:]]{5}" --color

what do i want to accomplish :

print only these words azert12345 and a1z2e3r4t5 using grep with a pattern like i said before something like (grep -E "[[:digit:]]{5}"), it is easy to print words like azert12345 using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digit of 5 and a maxumum number of alphabet as 5 but the problem is how am i going to print the mixed ones like this one a1z2e3r4t5 this probleme is driving me to crazy for 3 days and it is not a homework i start learning egain more about linux commands i need some help

I have a mixed wordlist as an input

  • azert12345
  • a1z2e3r4t5
  • a1z2e3r455

the command line i have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

what do i want to accomplish :

print only these words azert12345 and a1z2e3r4t5 using grep with a pattern like i said before something like (grep -E "[[:digit:]]{5}"), it is easy to print words like azert12345 using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digit of 5 and a maxumum number of alphabet as 5 but the problem is how am i going to print the mixed ones like this one a1z2e3r4t5 this probleme is driving me to crazy for 3 days and it is not a homework i start learning egain more about linux commands i need some help

I have a mixed wordlist as an input

azert12345
a1z2e3r4t5
a1z2e3r455

the command line i have tried to execute:

cat file.txt | grep -E "[[:digit:]]{5}" --color

what do i want to accomplish :

print only these words azert12345 and a1z2e3r4t5 using grep with a pattern like i said before something like (grep -E "[[:digit:]]{5}"), it is easy to print words like azert12345 using grep -E "[[:alpha:]]{5}[[:digit:]]{5}" with a maximum number of digit of 5 and a maxumum number of alphabet as 5 but the problem is how am i going to print the mixed ones like this one a1z2e3r4t5 this probleme is driving me to crazy for 3 days and it is not a homework i start learning egain more about linux commands i need some help

added 33 characters in body
Source Link
Loading
Source Link
Loading