1

I'm trying to find bitcoin adresses with grep, but without luck. What the problem? The main command is

grep -R --regexp="^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$"
2
  • 1
    Maybe you just need grep -E '^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$'? Aug 24, 2018 at 8:33
  • It seems that with that command, you may be using a basic regex (BRE) See grep --gelp. For your regex, you'll need at least extended regex (ERE). Thus you need the extra -E flag. Like this: -E --regexp== or concisely as Wiktor said.
    – Julio
    Aug 24, 2018 at 9:02

1 Answer 1

0

Try this:

egrep --regexp="^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$" filename

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.