rafaelmaeuer
1/15/2018 - 9:33 AM

How to Pass Arguments to a Bash-Script

# call bash file with argument:
# sh stats.sh songlist artist

# access argument in bash script
FILE1=$1
FILE2=$2
printf "arg1: $FILE1, arg2: $FILE2 \n"