Skip to content

Instantly share code, notes, and snippets.

View rosenta's full-sized avatar

rosenta

View GitHub Profile
@rosenta
rosenta / env_to_keep.txt
Last active April 6, 2022 03:42
Script to remove environment variables from list of whitelisted or valid environments to keep. maintain file name called env_to_keep.txt where each line will have environment variable names, each separated by new line.
BASH
BASH_ALIASES
BASH_ARGC
BASH_ARGV
BASH_CMDS
BASH_COMMAND
BASH_LINENO
BASH_SOURCE
BASH_SUB
BASH_SUBSHELL