DEV Community

Cover image for Bash Scripting: Command Arguments & User Inputs (5 mins)
Ahmed Said-ahmed
Ahmed Said-ahmed

Posted on

Bash Scripting: Command Arguments & User Inputs (5 mins)

Last time, we created the first shell file. Today, let's start passing arguments and user inputs.

Arguments gives the bash program more details about what you need to do. Sometimes, it comes as a form of sub-command like yarn add <packageName> where "add" tells the program more about what to do, and the packageName is what you data that you what to pass the program.

You can also pass inputs in the middle of the working program. It could be asking for confirmation, authentication, etc.

In this video, we will discuss the how to of this:

Check out previous videos in this series:

Top comments (0)