Skip to content

Commit

Permalink
Add ddoc #2 blog post (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Apr 25, 2024
1 parent f57180f commit a1cef3a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
date: 2024-04-25
categories:
- DDOC
- CLI
- ENV
- TERMINAl
- SHELL
---

# Daily Dose Of CLI \#2

## Temporary ENVIRONMENT Variable(s)

In various shells, it is possible to create a temporary environment variable for a specific process and its children by defining them immediately before the shell command that spawns the process.

Command:
```shell
TMP1="Hello," TMP2="World" bash -c 'echo $TMP1 $TMP2!'
```
Output:
```
Hello, World!
```

Command:
```shell
TMP="Temp ENV VAR" env
```
Output:
```
...
TMP=Temp ENV VAR
```

### References
* [`man 8 ip`](https://linux.die.net/man/8/ip)

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ categories:
ip -c a
```

![Learning Python Care Package](../../../images/DDOC/show-ips.png)
![show ip addresses](../../../images/DDOC/show-ips.png)

!!! Tip "Kudos"

Expand Down

0 comments on commit a1cef3a

Please sign in to comment.