Skip to content

Instantly share code, notes, and snippets.

@fivethreeo
Last active August 15, 2020 17:36
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 fivethreeo/3ffb1410d7720af3134b09a65416dddc to your computer and use it in GitHub Desktop.
Save fivethreeo/3ffb1410d7720af3134b09a65416dddc to your computer and use it in GitHub Desktop.
sudo gawk -i inplace '{
if ($0 ~ /debian\.org|nodesource\.com|docker\.com/) {
print gensub(/buster/, "bullseye", "g")
} else {
print $0
}
}' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment