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}$"
JaneFarrow
  • 101
  • 2
  • 10
  • 1
    Maybe you just need `grep -E '^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$'`? – Wiktor Stribiżew Aug 24 '18 at 08: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 '18 at 09:02

1 Answers1

0

Try this:

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

Lisbeth
  • 101
  • 1