Created
January 9, 2024 11:00
-
-
Save UnconventionalMindset/8241c37b70e13901681b1ab272bc941a to your computer and use it in GitHub Desktop.
Ubuntu get codename
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
#!/bin/bash | |
codename=$(lsb_release -c | sed 's/\(Codename:\s\)\(.*\)/\2/g') | |
echo "Ubuntu codename: ${codename}..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment