Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

printenv(1b) [opensolaris man page]

printenv(1B)					     SunOS/BSD Compatibility Package Commands					      printenv(1B)

NAME
printenv - display environment variables currently set SYNOPSIS
/usr/ucb/printenv [variable] DESCRIPTION
printenv prints out the values of the variables in the environment. If a variable is specified, only its value is printed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
csh(1), echo(1), sh(1), stty(1), tset(1B), attributes(5), environ(5) DIAGNOSTICS
If a variable is specified and it is not defined in the environment, printenv returns an exit status of 1. SunOS 5.11 14 Sep 1992 printenv(1B)

Check Out this Related Man Page

PRINTENV(1)							   User Commands						       PRINTENV(1)

NAME
printenv - print all or part of environment SYNOPSIS
printenv [VARIABLE]... printenv OPTION DESCRIPTION
Print the values of the specified environment VARIABLE(s). If no VARIABLE is specified, print name and value pairs for them all. --help display this help and exit --version output version information and exit NOTE: your shell may have its own version of printenv, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports. AUTHOR
Written by David MacKenzie and Richard Mlynarik. REPORTING BUGS
Report printenv bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> COPYRIGHT
Copyright (C) 2009 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 printenv is maintained as a Texinfo manual. If the info and printenv programs are properly installed at your site, the command info coreutils 'printenv invocation' should give you access to the complete manual. GNU coreutils 7.1 July 2010 PRINTENV(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

DISPLAY settiing

How to set the display environment variable through a script? i tried that using "setenv" but it gave me error. is there any idea? :confused: (19 Replies)
Discussion started by: sskb
19 Replies

2. UNIX for Dummies Questions & Answers

setting environment variables ???

Hello, I want to set some environment variables with this script: ip=$@ echo Remote Computer: $ip PERLDB_OPTS="CallKomodo=$ip:9000 RemotePort=$ip:9010 PrintRet=0" export PERLDB_OPTS PERL5LIB=/opt/komodo export PERL5LIB echo PERLDB_OPTS: $PERLDB_OPTS echo PERL5LIB: $PERL5LIB But it... (5 Replies)
Discussion started by: Gargamel
5 Replies

3. UNIX for Dummies Questions & Answers

environment variables

Hi Folks, Is it possible somehow to unset all the environment variables which have been defined before in UNIX (Solaris). Thanks, Slava (3 Replies)
Discussion started by: spavlov
3 Replies

4. UNIX for Advanced & Expert Users

system variables

Hi, I recently encountered the notion of a 'system variable' in unix which is displayable only via echo $(<var>) rather than echo $<var> They are NOT environment variables since they can't be set by the user - they live in a different name space, but are 'in place' when the user... (2 Replies)
Discussion started by: Ken Quirici
2 Replies

5. UNIX for Advanced & Expert Users

obsolete environment variables

how can we determine that which scripts ,binaries, utilities or something else uses a specific environment variable? i have an environment variable EXTRAPATH in a shell script, and i want to determine if it is used by something else or it is absolutely useless. (4 Replies)
Discussion started by: gfhgfnhhn
4 Replies

6. UNIX for Dummies Questions & Answers

help assining variables

this is what i'm trying to do... while test -f $newFile echo $newFile already existed, renaming. do variable = 000 newFile = '$newFile.$variable' ((variable += 1)) done echo file name is now $newFile Q - on line five, I'm trying to append the numbers to the end of the file,... (3 Replies)
Discussion started by: Kronk
3 Replies

7. Shell Programming and Scripting

Replace environment variables with sed

Hi, I need to write a sed that replaces the value of all environment variables that have PASS in the name with ***** . I have a log file who prints the value of all environment variables ,including those who hold passwords. In the name of these variables I found always the PASS string, ex:... (16 Replies)
Discussion started by: liorfe
16 Replies

8. UNIX for Dummies Questions & Answers

change makefile environment variables

this is my first post so Hello, here is my question @top level Makefile should not set values for environment variables FC, CC, FFLAGS (etc) but use the ones that mpi_make sets. So as you can see i have to run an mpi program, in fortran and i am supposed to do the above.the program was... (3 Replies)
Discussion started by: Kwstas
3 Replies

9. Shell Programming and Scripting

Simple script to return environment variable

HI , In the below script I am trying to return the value of the environment variable TIBCO_HOME to the caller #! /usr/bin/csh set VAR_NAME=$1 echo VAR_NAME On the aix console.. set to setenv TIBCO_HOME /app/tibco When I execute the script... myscript.sh TIBCO_HOME, the script... (5 Replies)
Discussion started by: bce_groups
5 Replies

10. Shell Programming and Scripting

help with variables..

Hi Guys, I have variable as_srvr102="there is no way" Now the srvr102 will be keep changing as srvr103,srvr104..... I have captured the srvrs in a variable.. but when i am doing an echo.. its not returning the output.. odi001trdp01: b=srvr102 odi001trdp01: as_srvr102="there is no way"... (4 Replies)
Discussion started by: mac4rfree
4 Replies

11. SCO

Help finding where certain environment variables are set

i have two machines that should be identical but on one system there are some oracle environment (ORACLE_SID, ORACLE_HOME, etc...) variables that are not being set for the users. I am trying to find where those environment variables are being set on the system which is working properly. All... (5 Replies)
Discussion started by: kuliksco
5 Replies

12. Red Hat

List of all environment variables?

Hey all, I am simply trying to find a listing of all of the default BASH environment variables in RHEL 5.4. Namely, I need to find what the path variable is for libraries since one of my applications doesn't see a module that it needs to run. So far I've seen $LD_PRELOAD, $LD_LIBRARY_PATH and... (4 Replies)
Discussion started by: msarro
4 Replies

13. UNIX for Dummies Questions & Answers

Finding WHERE an environment variable is defined.

HI. I had an environment variable defined in my .bash_profile file and I deleted it. I opened a new terminal and looked inside .bash_profile and it's not there but when I type printenv MYCONFIG it reutrns what the value used to be in my .bash_profile still!! I did a grep for MYCONFIG and... (6 Replies)
Discussion started by: dissectcode
6 Replies

14. Shell Programming and Scripting

Variable print problem

Hi, I'm facing some problem with printing the values in the variables I have passed all the database values into the variable, but when i echo the variable i get the values printed in one line var=`echo <query> | database` echo $var or awk 'BEGIN {printf("%s\n","'"${var}"'")}' this... (4 Replies)
Discussion started by: prash_b
4 Replies

15. Shell Programming and Scripting

Resolving the environment variable from a file

Hi, I an having some environment variables exported and the variable name is present in the file. But its not resolving with following commands. Can someone throw some light. db $ grep -v "^#" TD_FWK_NUCLEUS.dbc | grep -v "^$" | xargs -i echo {} wb_bin: ${TD_FWK_NUCLEUS_DBC_WB_BIN_TAG} I... (3 Replies)
Discussion started by: Mohammed Rafi
3 Replies