Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get additional parameters linux scripting

$ cat myscript
#!/bin/bash
echo "First arg: $1"
echo "Second arg: $2"
$ ./myscript hello world
First arg: hello
Second arg: world
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #additional #parameters #linux #scripting
ADD COMMENT
Topic
Name
2+2 =