LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   shell script (https://www.linuxquestions.org/questions/debian-26/shell-script-424961/)

gauri 03-15-2006 12:51 AM

shell script
 
Hi All,

I am having one file say ABC where i a defining all the variable like as follows:

name1=gauri
name2=sandeep
name3=mishra

Now i am using one shell script say xyz.sh where i am using ABC file as :

export ABC

$DEBUG "ABC: load_section [globals]"

function load_section
{
typeset section

${HAVE_BINIFILE:-true} || return
[[ -n "$ABC" ]] || oops "load_section: ABC is empty string"
[[ -f "$ABC" ]] || oops "load_section: File not found: $ABC"

section="${1:-$SCRIPT}"
...
....
...
}

acid_kewpie 03-15-2006 01:19 AM

did you feel like actually asking a question about this then?

gauri 03-15-2006 02:03 AM

Ohh I am sorry i forgot to ask quetion.

Acually i hve two quetion here..

1. Export ABC what does it mean, i know teh meaning of exporting a variable but not the file.

2. what is teh meaning of DEBUG here.

Thanks & Regards
Gauri

dracae 03-15-2006 08:33 AM

It looks like you are export the filename for you script.
$DEBUG in this case could be "echo"

gauri 03-15-2006 11:51 PM

Thanks a lot.Yes you are right.

regards
Gauri


All times are GMT -5. The time now is 06:29 PM.