Guides
In the getting started with bash guide, we took a sneak peek in customizing script with argument, the issue with the example is that we aren't checking if the variable is set or not before returning
We've previously explored a little of a command list in our Getting Started with Bash Guide, where we check if a directory already existed in our user home directory, if it already exists, output “
Nothing much to say, I'll just keep grinding. Well, I wrote a couple of guides that I couldn't publish, so, I'll probably save that for other weeks, here are week 9 guides:
Sourcing With Bash
Local
We've previously taken a quick look at the builtin read command, where we use the built-in read to populate the $REPLY variable, which holds the value of read when a variable is not supplied to read
Local variables are private inside of a function and the most important thing about a local variable is that when it is changed in a function, it doesn't affect the variable outside of a function.
If
Generally, to run a bash program or script you need to add a permission bit, which makes the program or script executable and you then run it whenever you like, the thing is when execution starts, a
So far in our examples or scripts, we have written in the previous guides, we have no way of controlling what is visible to user, which is fine if we have no sensitive data such as passwords.
As soon
We previously looked at the way we could utilize the read prompts in bash, here is the script we wrote in out last guide:
#!/bin/bash
read -p "What is Your Name? " name
echo "Your Name is $name"
exit
I don't know why it took me a bit to write my week 8 update, but that could be the heavy flow of content I am pouring out on my other blog. Anyways, week 8 has been cool but nothing big actually.
The
I can't count how many times I have typed my ssh key passphrase whenever my ssh connection times out, it is so annoying and repetitive.
Well, thanks to the putty pageant, you can do that seamlessly.