Merge 48e9949640
into a05548c0b2
commit
e77dba03a0
|
@ -95,6 +95,8 @@ Notes:
|
||||||
|
|
||||||
- If you are halfway through typing a command but change your mind, hit **alt-#** to add a `#` at the beginning and enter it as a comment (or use **ctrl-a**, **#**, **enter**). You can then return to it later via command history.
|
- If you are halfway through typing a command but change your mind, hit **alt-#** to add a `#` at the beginning and enter it as a comment (or use **ctrl-a**, **#**, **enter**). You can then return to it later via command history.
|
||||||
|
|
||||||
|
- If you want to type a command but you remember only the beginning, hit **tab** to complete your command or double hit **tab** to display all possibilities.
|
||||||
|
|
||||||
- Use `xargs` (or `parallel`). It's very powerful. Note you can control how many items execute per line (`-L`) as well as parallelism (`-P`). If you're not sure if it'll do the right thing, use `xargs echo` first. Also, `-I{}` is handy. Examples:
|
- Use `xargs` (or `parallel`). It's very powerful. Note you can control how many items execute per line (`-L`) as well as parallelism (`-P`). If you're not sure if it'll do the right thing, use `xargs echo` first. Also, `-I{}` is handy. Examples:
|
||||||
```bash
|
```bash
|
||||||
find . -name '*.py' | xargs grep some_function
|
find . -name '*.py' | xargs grep some_function
|
||||||
|
|
Loading…
Reference in New Issue