diff --git a/book/coming_from_bash.md b/book/coming_from_bash.md index 071dcc96cd9..b5e128ba459 100644 --- a/book/coming_from_bash.md +++ b/book/coming_from_bash.md @@ -42,6 +42,8 @@ $env.Path = ($env.Path | prepend 'C:\Program Files\Git\usr\bin') | `command \| head -5` | `command \| first 5` | Limit the output to the first 5 rows of an internal command (see also `last` and `skip`) | | `cat ` | `open --raw ` | Display the contents of the given file | | | `open ` | Read a file as structured data | +| `cat <() <()` | `[(command1), (command2)] \| str join` | Concatenate the outputs of command1 and command2 | +| `cat <()` | `[(open --raw ), (command)] \| str join` | Concatenate the contents of the given file and output of command | | `mv ` | `mv ` | Move file to new location | | `for f in *.md; do echo $f; done` | `ls *.md \| each { $in.name }` | Iterate over a list and return results | | `for i in $(seq 1 10); do echo $i; done` | `for i in 1..10 { print $i }` | Iterate over a list and run a command on results |