Day 04 Task

1.what is shell scripting for devops

Shell scripting in DevOps is like having a toolbox full of handy shortcuts for automating tasks in software development and operations. It's about writing scripts using shell languages like Bash to streamline processes such as setting up servers, deploying applications, managing configurations, and monitoring systems. Essentially, it's a way to make your workflow more efficient and consistent by automating repetitive tasks, freeing up time for more creative and strategic work. Think of it as your secret weapon for smoother, faster, and more reliable software development and deployment.

2.What is #!/bin/bash? can we write #!/bin/sh as well?

#!/bin/bash is called a shebang, which is a special instruction at the beginning of a script that tells the operating system which interpreter should be used to execute the script. In this case, #!/bin/bash specifies that the script should be interpreted by the Bash shell.

Yes, you can also write #!/bin/sh to indicate that the script should be interpreted by the system's default shell, which may or may not be Bash. /bin/sh typically points to the system's default shell, which could be Bash, Dash, or another shell depending on the operating system and its configuration.

Using #!/bin/sh instead of #!/bin/bash can make your script more portable because it will work with any shell that conforms to the POSIX standard. However, if you specifically need features that are unique to Bash, you should use #!/bin/bash.

3.Write a Shell Script which prints I will complete #90DaysOofDevOps challenge

4.Write a Shell Script to take user input, input from arguments and print the variables.

5.Write an Example of If else in Shell Scripting by comparing 2 numbers

output