-
Notifications
You must be signed in to change notification settings - Fork 52
getrel
Ulrich Berntien edited this page Mar 25, 2019
·
1 revision
getrel - attempt to get the OS release file
getrel
getrel prints the OS name from the release file.
The function search a release file with pattern /etc/*release. Inside the files the function search a line like “PRETTY_NAME=release name”.
getrel prints the name to stdout. The function prints nothing if the search is not successful.
Run the function. There are no command line arguments.
$ getrel
The function reads the /etc/*release files.