Created
June 12, 2021 22:40
-
-
Save nevergone/9ee0658427527b23f3f77c14dfd44072 to your computer and use it in GitHub Desktop.
sed regex with line insert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i -re '/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com(.*)/a \1' sources.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment