recentpopularlog in

parameters

« earlier   
How to Customize Bash Colors and Content in Linux Terminal Prompt
In this article we will explain how to customize the color and content of your Linux Bash terminal prompt.
bash  prompt  color  configuration  parameters 
11 weeks ago by markav
Passing Parameters to a Piston - Example Pistons - webCoRE Community Forum
This minimized example is actually pretty helpful for explaining how arguments work in webCoRE.
webcore  arguments  parameters  automation  2018 
12 weeks ago by handcoding
bash - unshift args after calling shift 1 - Unix & Linux Stack Exchange
You never need to use shift 1 in the first place. Just use the positional arguments and slice around their indices to pass the arguments.
<code class="language-bash">first_arg="$1"</code>

Once you do this, the rest of the arguments can be accessed as "${@:2}". The notation is a way to represent from positional argument 2 to till the end of the list.
bash  shellscripting  positionalarguments  parameters  solution 
june 2019 by kme
bash - REOPEN: Perform arithmetic expansion inside parameter expansion? - Unix & Linux Stack Exchange
Again with the 'set' trick for testing script arguments interactively:
<code class="language-bash">set 6 7; echo $(($1*$2))</code>
bash  parameterexpansion  arithmeticexpansion  shellscripting  parameters  positionalarguments  idiom  tipsandtricks 
june 2019 by kme

Copy this bookmark:





to read