Skip to content

Instantly share code, notes, and snippets.

@noinarisak
Last active October 27, 2020 22:35
Show Gist options
  • Save noinarisak/68673378c36dd9e1c1ebb75a00e75bd3 to your computer and use it in GitHub Desktop.
Save noinarisak/68673378c36dd9e1c1ebb75a00e75bd3 to your computer and use it in GitHub Desktop.
# //BUG: There is bug in the '-e'. Maybe have to two sed calls to the same log file?
function scrub_log() {
sed -i -e 's/^Authorization: SSWS.*/Authorization: SSWS not_real_base64_token/g' -e 's/^Authorization: Bearer.*/Authorization: Bearer not_real_base64_token/g' @{1}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment