From 700af8c2c9feb7e66486857e05b709cfa37e9818 Mon Sep 17 00:00:00 2001 From: Blake Leverington Date: Thu, 5 May 2022 13:26:09 +0200 Subject: [PATCH] Update 'computing_shell_scripts' --- computing_shell_scripts.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/computing_shell_scripts.md b/computing_shell_scripts.md index 0b36d41..b1bd5f0 100644 --- a/computing_shell_scripts.md +++ b/computing_shell_scripts.md @@ -14,13 +14,13 @@ There are several flavours of Linux shells. Bash is one of the most common. - [Bash Scripting Tutorial for beginners](https://linuxconfig.org/bash-scripting-tutorial-for-beginners) ## variables in a bash script -$0 - The name of the Bash script. -$1 - $9 - The first 9 arguments to the Bash script. (As mentioned above.) -$# - How many arguments were passed to the Bash script. -$ - All the arguments supplied to the Bash script. -$ - The exit status of the most recently run process. -$$ - The process ID of the current script. -$USER - The username of the user running the script. -$HOSTNAME - The hostname of the machine the script is running on. -$SECONDS - The number of seconds since the script was started. -$RANDOM - Returns a different random number each time is it referred to. \ No newline at end of file + - $0 - The name of the Bash script. + - $1 - $9 - The first 9 arguments to the Bash script. (As mentioned above.) + - $# - How many arguments were passed to the Bash script. + - $ - All the arguments supplied to the Bash script. + - $ - The exit status of the most recently run process. + - $$ - The process ID of the current script. + - $USER - The username of the user running the script. + - $HOSTNAME - The hostname of the machine the script is running on. + - $SECONDS - The number of seconds since the script was started. + - $RANDOM - Returns a different random number each time is it referred to. \ No newline at end of file