use grep to filter results printenv | grep <desiredFilter> # Example: printenv | grep LANG # This will print out only the system variable of LANG