85ae438
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash # Prints out your OS name PREFIX=' ' get_os_name() { OS=$(cat /etc/os-release | head -n 1 | sed 's/NAME=//g') echo "$PREFIX$OS" } get_os_name