Created
January 18, 2025 04:36
-
-
Save godmachine81/82f5057dee29f9cd733fc1e8df97a164 to your computer and use it in GitHub Desktop.
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/zsh | |
#First I'm going to set variables that will in the end be the answers to this simple program I'm writing: | |
#Variables | |
MOM=SHERRY | |
SON1=LANCE | |
SON2=CHAD | |
FATHER=RICKY | |
DATE=$(date) | |
ILU="I love you mom and I'm sorry for allI've put you through, I hope you know you will always be the best woman in the world. There will never ever be a better mom. Thanks for all you have always done! we all love you !!" | |
echo " Hello, my mother is $MOM and my father is $FATHER "; | |
echo "They had two sons, $SON1 and $SON2"; | |
echo "Once variables are SET with a value then they are called in a command with a $ which indicates you are summonsing the value of the variable listed after the $. echo is a command that just prints the characters in the line with the variable results to the screen."; | |
echo " My simple variable example program is all finished now. I finished this program on $DATE Thank you and I hope you learned a little from my simple program I wrote to help you understand variables and commands."; | |
echo $ILU; | |
echo " I hope you learned a little something I am going to run the program and show you the output after you see this the source code"; | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment