90DaysOfDevOps
Task: Basic Linux Shell Scripting for DevOps Engineers.
In a simple words with examples, what is Shell Scripting for DevOps.
It is a computer program which help us to run the bulk of command in a sequence with proper time gaping in between the commands. There is no want to run a single commands again and again we just want to write a script of required command then only want to run that script only.
What is `#!/bin/bash?` can we write `#!/bin/sh` as well?
bash and sh both are the shells of operating system. sh is an original shell and bash is improvement of the sh with more features and syntax. But I personally recommend you to use bash instead of sh.
Write a Shell Script which prints `I will complete #90DaysOofDevOps challenge`
领英推荐
?Write a Shell Script to take user input, input from arguments and print the variables.
Here, -p allows you to specify a prompt, and -s, which makes the input silent like to hide password.
Write an Example of If else in Shell Scripting by comparing 2 numbers
Conclusion
In this article, we just learn basics of shell script and also how can we access arguments passed through the command line.
Thank you?for giving your precious time for reading this blog/article and also follow?Vishu Goyal?for more such blogs/article and also thanks a lot for keeping your calm and reading till end. I hope this article helped you :) Happy coding!
You can also mail me:?[email protected]
HashTags:
Helping Students and Professionals build their Careers | Experience in DevOps | Python | AWS | PySpark | SQL | NoSQL | 1000+ Learners placed
2 年good work