Skip to content

Instantly share code, notes, and snippets.

@ozzi-
Created July 24, 2020 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozzi-/617bf8f6599b2cfa1cae378a4fbfeb75 to your computer and use it in GitHub Desktop.
Save ozzi-/617bf8f6599b2cfa1cae378a4fbfeb75 to your computer and use it in GitHub Desktop.
$ echo "f00 bar 123 f00 foo" | awk -F"f00" '{ print NF-1}'
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment