Skip to content

Instantly share code, notes, and snippets.

@brovish
Last active December 9, 2020 08:50
Show Gist options
  • Select an option

  • Save brovish/02cd03aff2a87c951ae85d0f44f25271 to your computer and use it in GitHub Desktop.

Select an option

Save brovish/02cd03aff2a87c951ae85d0f44f25271 to your computer and use it in GitHub Desktop.
example to extract substrings with grep
##example to extract substrings with grep
grep -Poe '\[SWIFT BIC CODE\].*?\[|BIC\/SWIFT.*?\[|\(BIC\)\/SWIFT.*?\[|\(BIC\) \/ SWIFT.*?\[' list_full.csv | wc -l
##Grep everything before a specific character [duplicate]
awk -F":" '{print $1}' < inputfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment