fork download
  1. #!/bin/bash
  2. test='abcdfghejekele brightndree'
  3. grep -Eio '[[:alpha:]]*[b-df-hj-np-tv-z]{6}[[:alpha:]]*' <<< "$test"
  4. echo '== Now, without [[:alpha:]]*'
  5. grep -Eio '[b-df-hj-np-tv-z]{6}' <<< "$test"
Success #stdin #stdout 0s 4380KB
stdin
Standard input is empty
stdout
abcdfghejekele
brightndree
== Now, without [[:alpha:]]*
bcdfgh
ghtndr