Created
July 7, 2022 15:41
-
-
Save madflojo/d560d7c002d68446e0ad69d454e6d988 to your computer and use it in GitHub Desktop.
Article - Manage Shell Scripts - Pre formatter
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
#! /bin/bash | |
# Simple script that says who I am. | |
WHOAMI=`whoami` | |
if [ $WHOAMI == "root" ] | |
then | |
cowsay "I am rooooot!!!" | |
else | |
cowsay "You are $WHOAMI" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment