Skip to content

Instantly share code, notes, and snippets.

@frankIT
Created September 22, 2019 23:13
Show Gist options
  • Save frankIT/21c36887cfbf3897063fe02b980dece3 to your computer and use it in GitHub Desktop.
Save frankIT/21c36887cfbf3897063fe02b980dece3 to your computer and use it in GitHub Desktop.
change distro release codename to all apt config files
#!/bin/bash
for f in $(grep -Ril stretch "/etc/apt/sources.list.d/");
do sudo sed -i 's/stretch/buster/g' "$f";
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment