30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
#variables can have almost any name
|
||
|
#you just can't have spaces or crazy special characters
|
||
|
#To illustrate this I will make variables with stupid names
|
||
|
|
||
|
GIANTDICK="die bitch" #anything in double quotes will be treated as text
|
||
|
NIGGERS="I hate niggers"
|
||
|
|
||
|
#now we can echo the variables
|
||
|
#mind you that if the variables have no value, nothing will show up
|
||
|
#thankfully we put racial slurs and cuss words in them
|
||
|
|
||
|
echo $GIANTDICK #notice the dollar sign, this is how you call a variable
|
||
|
echo $NIGGERS
|
||
|
|
||
|
#you can use these variables anywhere in your script
|
||
|
|
||
|
echo "One day I woke up and I thought yo myself, ${NIGGERS}!"
|
||
|
|
||
|
#if you put curly braces around the name of the variable,
|
||
|
#bash won't think that the explaimation point is part of the variable
|
||
|
#I had this happen to me once because I didn't use curly braces.
|
||
|
|
||
|
#well that's pretty much it for variables
|
||
|
#since I commented out the text of me explaining things, you can run this script and it will work
|
||
|
|
||
|
#Feel free to play around with it, but make sure you make a copy before you do so.
|
||
|
# I hope this helps you bro!
|