#!/bin/bash
echo unsettling structures
awk 'BEGIN {
while (structures -e power)
print "destabilising " binary++
}'
mkdir queercode
(make a directory called queercode) cd queercode
(so you are now at the queercode directory)nano queercode.sh
(editing mode)
#!/bin/bash
echo unsettling structures
awk 'BEGIN {
while (structures -e power)
print "destabilising " binary++
}'
Y
, then press Enter ls
(list the file in the directory) bash queercode.sh
(to run the bash script) #!/bin/bash
: to instruct the computer system to use bash as a default shell, which is the LINUX command interpreter, to execute a defined script. (#! refers to shebang, which is the combination of the # (pound key) and ! (exclamation mark)) echo unsettling structures
: echo is a bash syntax which is used to instruct the computer to display a line of text/string on the screen. Here the text is "unsettling structures". awk 'BEGIN {}
: awk and BEGIN are bash syntax. The intention for using both the syntax in the script is more to take the semantic dimension, and it reads as: awk(ward) begin. Functonally speaking, the two syntax are used for pattern (especially text parsing in sentences/files) recognization and processing. while (structures -e power)
: while() is a conditional loop structure. This means that while the condition holds true, the program will keep executing the code. It usually comes with do and done syntax. Both structures and power are null variables. -e is an operator, that means equal (==), a comparing condition of the two variales: structures and power. The whole line reads as "while structures equal power." print "destabilising " binary++
: this statement is within the while loop structure, and binary++ is a variable that will increment by 1 for each iteration. Therefore, the screen continuous and endlessly prints the line destabilising 1, destabilising 2, destabilising 3, destabilising 4, ...