DEV Community

Cover image for Bash Scripting: Command Arguments & User Inputs (5 mins)
A. S. Zaghloul
A. S. Zaghloul

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:

Discussion (0)