Welcome to part 4 in the series of shell scripting. Today we will look at a script that goes through an array with complex values. Complex values such as spaces, apostrophes, and quotes.
Scripting is the process of writing a set of instructions in a programming or scripting language to automate tasks that would otherwise be done manually. In the context of shell scripting, these instructions are written for the command-line shell, allowing users to perform complex operations - like file management, backups, or software installations - with just a single script execution. It's a powerful tool for saving time and ensuring consistency in system administration and development workflows
Create the script in VIM, complex_list.sh
Write and save the script in VIM.
We can check whether it has been created by doing ls -ltrh.
Give the permission so the script can be executed.
If we then do a ls –ltrh we can see the script has gained a green colour, meaning that it is now executable.
Output after executing the script by using the command ./
Stay tuned, part 5 in the series coming tomorrow!
Connect with me on LinkedIn
#30DaysLinuxChallenge #RedHatEnterpriseLinux
#CloudWhistler #CloudEngineer #Linux
#DevOps #RedHat #OpenSource
#CloudComputing #Automation
#CloudEngineer #SysAdmin #ITSecurity #TechTips #BusinessIT #Leadership
Top comments (0)