Shell script variable $1 used with put command

I have the following script used, i am new to shell scripting. tryign to understand.
in the put $BASE_FOLDER/$base_name holds which path.
What does it mean by $1

second path in put command is it constructing this path: /user/hive/warehouse/stage.db/$1

what is $1 holding in above path.

base_name=$1
BASE_FOLDER=/user/hive/warehouse/stage.db

hadoop fs -put /stage/data/data/cerner/$base_name* $BASE_FOLDER/$base_name

Thanks lot for the helpful info.

$1 or ${1} refers to the first argument passed to the script when invoked.
If you have an script named myscript.sh and you invoked it as ./myscript.sh /dir1 /dir2 , $1 for it will be /dir1 and $2 will be /dir2

In order to answer your question you need to tell us what arguments are passed to it when invoked.

Hello Aia,

Thanks a lot for the helpful response, now making sense and understanding thank you.

from stage_process.sh file has the following:

PROCESS_DIR=/usr/local/bin/mchhadoop
$PROCESS_DIR/process_stage_file.sh CLINICAL_EVENT.txt

meaning now $1 is CLINICAL_EVENT.txt

process_stage_file.sh file has the following:

base_name=$1
hadoop fs -put /stage/data/data/cerner/$base_name* $BASE_FOLDER/$base_name