sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

printenv.1 (496B)


      1 .Dd 2016-03-30
      2 .Dt PRINTENV 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm printenv
      6 .Nd print the environment or values of variables
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Ar var ...
     10 .Sh DESCRIPTION
     11 .Nm
     12 prints the entire environment as key=value pairs if no
     13 .Ar var
     14 is given.
     15 Otherwise,
     16 .Nm
     17 prints only the value of each
     18 .Ar var
     19 one per line in the order specified.
     20 .Sh EXIT STATUS
     21 .Bl -tag -width Ds
     22 .It 0
     23 Successful completion.
     24 .It 1
     25 One or more queried variables were not found.
     26 .It > 1
     27 An error occurred.
     28 .El
     29 .Sh SEE ALSO
     30 .Xr env 1