Skip to content

Commit 8bfa804

Browse files
authored
Add example of inline string concat (#621)
* Add example of inline string concat * Update coming_from_bash.md * Update coming_from_bash.md * Update coming_from_bash.md
1 parent b1703ae commit 8bfa804

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

book/coming_from_bash.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Note: this table assumes Nu 0.60.0 or later.
4242
| | `help --find <string>` | Search for match in all available commands |
4343
| `command1 && command2` | `command1; command2` | Run a command, and if it's successful run a second |
4444
| `stat $(which git)` | `stat (which git).path` | Use command output as argument for other command |
45+
| `echo /tmp/$RANDOM` | `echo $"/tmp/(random integer)"` | Use command output in a string |
46+
| `cargo b --jobs=$(nproc)` | `cargo b $"--jobs=(sys \| get cpu \| length)"` | Use command output in an option |
4547
| `echo $PATH` | `echo $env.PATH` | See the current path |
4648
| `<update ~/.bashrc>` | `vim $nu.config-path` | Update PATH permanently |
4749
| `export PATH = $PATH:/usr/other/bin` | `let-env PATH = ($env.PATH \| append /usr/other/bin)` | Update PATH temporarily |

0 commit comments

Comments
 (0)