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
$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.