Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell script get arguments

$ myscript.sh first_arg second_arg

# myscript.sh
#!/bin/bash
echo $1 # output: first_arg
echo $2 # output: second_arg
 
PREVIOUS NEXT
Tagged: #shell #script #arguments
ADD COMMENT
Topic
Name
6+4 =