initial commit
This commit is contained in:
13
chapter23/function_get_OS_level
Executable file
13
chapter23/function_get_OS_level
Executable file
@@ -0,0 +1,13 @@
|
||||
get_OS_level ()
|
||||
{
|
||||
# Query for the operating system release and version level
|
||||
|
||||
oslevel -r
|
||||
|
||||
OSL=$(oslevel -r | cut -c1-2)
|
||||
if (( OSL >= 53 ))
|
||||
then
|
||||
echo "Technology Level: $(oslevel -s)"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user