#!/usr/bin/env bash # klevstul :: 25.07 this_file_name=`basename "$0"` echo "<< ${this_file_name} >>" if [ "$EUID" -ne 0 ] then echo "error: run as 'root'" exit fi # 1. Set the file to write to file="/etc/os-release" # 2. Append text with '>>' echo "VERSION=\"0\"" >> ${file} tail ${file}