paint-brush
How To Create a Foolproof Shell Scriptby@abhishek-dubey
976 reads
976 reads

How To Create a Foolproof Shell Script

by Abhishek Dubey5mJanuary 2nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

After making a lot of mistakes and messy scripts, I am sharing my experiences for writing a good shell script. I am a lazy DevOps Engineer. So whenever I came across the same task more than 2 times I automate that. So let’s create a problem statement for ourselves and then try to solve it via shell scripting with best practices. Here is the list of things that should always be taken care of while writing a shell script. The list includes functions, variables, the lifespan of a script, logging, help page, command sanity.

Company Mentioned

Mention Thumbnail
featured image - How To Create a Foolproof Shell Script
Abhishek Dubey HackerNoon profile picture
Abhishek Dubey

Abhishek Dubey

@abhishek-dubey

A DevOps Engineer currently working with the OpsTree

Learn More
LEARN MORE ABOUT @ABHISHEK-DUBEY'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Abhishek Dubey HackerNoon profile picture
Abhishek Dubey@abhishek-dubey
A DevOps Engineer currently working with the OpsTree

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite