Skip to content

Instantly share code, notes, and snippets.

@kbbgl
Created May 7, 2020 16:56
Show Gist options
  • Save kbbgl/b0a825336781a648f77293fd9c6df512 to your computer and use it in GitHub Desktop.
Save kbbgl/b0a825336781a648f77293fd9c6df512 to your computer and use it in GitHub Desktop.
[match x or inifinte times] #regex
# use {x,} to match string with x+ characters
echo "hello world reallylongword" | grep -P "\w{6,}" -o # will match reallylongword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment