Timeline for How to print only defined variables (shell and/or environment variables) in bash
Current License: CC BY-SA 2.5
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 5, 2018 at 17:18 | comment | added | Toby Speight |
Equivalently, with sed: set | sed '/=/!Q'
|
|
| Oct 27, 2010 at 3:34 | comment | added | Steven D | Great solution! I didn't even think of just stopping at the first line that doesn't have a '='. +1 | |
| Oct 26, 2010 at 18:58 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 2.5 |