The most important thing for me was here to have a version of a command with an option that is as short as possible, so it's convenient to use it.
And on a second thought, I think environment variables are not such a good way to use in general. I appreciate explicit parameter handover more since external dependencies and data access is not hiden in the code but directly visible at a program call.
And I would better write such script in a single file now:
Hi!
How-to get the environment variables in GNU.
getenv() only fetches the ones that you can find under export (not the ones under declare)...
best regars .David (2 Replies)
hi,
I want to create a new EV(Environment Variable) through a c program and I done this thing through setenv() method. But the newly created EV is not permanent, i.e. when I exit from the program the EV also no longer lives. But I want to make it a permanent EV for the current user. Actually I... (6 Replies)
say i define an environment variable in a particular script (upgrade.sh).
my script is upgarde.sh and it calls another script try.sh. will this environment variable be accessible to try.sh also. if not how to I make environment variables global so that they can be used by any script. (2 Replies)
Hi all,
I have a file contain 100 lines xml. Would like to get the note value of special attribute. Could anyone help?
input:
<a>1</a><b>2</b><c>3</c><d>4</d><e>5</e><f>64</f>
<a>1</a><b>2</b><c>33</c><d>4</d><e>56</e><f>63</f>
<a>1</a><b>2</b><c>66</c><d>4</d><e>58</e><f>62</f>... (3 Replies)
Hi Experts,
Need your help in understanding the commands to setup the environment variables in hp-ux.
Beleive need to use either set,setenv or export.
I am confused between above three options, when to use which option?
On command line, I have tried both set and setenv but couldn't... (1 Reply)
1. The problem statement:
What is the mesg value set for your environment? If it is on, how would you turn off your current
session? How would you set it permanently?
3. The attempts at a solution :
Read Unix The textbook.
3rd chapter has many things like environment variables and... (5 Replies)
Hi All,
I need to understand following three environment variables and their usages in HP Unix.
_M_ARENA_OPTS
_M_CACHE_OPTS
PTHREAD_SCOPE_SYSTEM
How does these environment variables influence multi threaded applciation and how do we decide the value of these variables? Is there... (0 Replies)
Discussion started by: angshuman
0 Replies
LEARN ABOUT SUSE
envsubst
ENVSUBST(1) GNU ENVSUBST(1)NAME
envsubst - substitutes environment variables in shell format strings
SYNOPSIS
envsubst [OPTION] [SHELL-FORMAT]
DESCRIPTION
Substitutes the values of environment variables.
Operation mode:
-v, --variables
output the variables occurring in SHELL-FORMAT
Informative output:
-h, --help
display this help and exit
-V, --version
output version information and exit
In normal operation mode, standard input is copied to standard output, with references to environment variables of the form $VARIABLE or
${VARIABLE} being replaced with the corresponding values. If a SHELL-FORMAT is given, only those environment variables that are referenced
in SHELL-FORMAT are substituted; otherwise all environment variables references occurring in standard input are substituted.
When --variables is used, standard input is ignored, and the output consists of the environment variables that are referenced in SHELL-FOR-
MAT, one per line.
AUTHOR
Written by Bruno Haible.
REPORTING BUGS
Report bugs to <bug-gnu-gettext@gnu.org>.
COPYRIGHT
Copyright (C) 2003-2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for envsubst is maintained as a Texinfo manual. If the info and envsubst programs are properly installed at your
site, the command
info envsubst
should give you access to the complete manual.
GNU gettext-runtime 0.17 November 2007 ENVSUBST(1)