Bash Script: Flags usage with arguments examples

Posted by linuxer on Mar 10, 2022 1:12 PM EDT
LinuxConfig.org; By Korbin Brown
Mail this story
Print this story

If you have any experience on the Linux command line, then you should have run into command flags, which help us modify the behavior of a command that we are executing.For example, if we execute the ls -l command, the -l part of the command is a flag that we are passing as an argument to ls. This same functionality can be used in a Bash script, allowing us to pass some input to the script through flags when we are executing the script.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.