Last active
July 9, 2022 08:12
-
-
Save hidsh/73cf7d74a7bbf310f28dc47223a1ed7a to your computer and use it in GitHub Desktop.
Ubuntu のバージョンを調べるのに毎回5万回ほどググってさすがに嫌になったのでシェルスクリプトにしとく。
This file contains hidden or 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
#!/usr/bin/sh | |
ubuntu_version() { | |
echo `cat /etc/lsb-release |grep -oP '(?<=").+(?=")'` | |
} | |
echo `ubuntu_version` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment