Docs
This commit is contained in:
parent
790281e533
commit
6c842ed65a
1 changed files with 15 additions and 7 deletions
16
README.md
16
README.md
|
@ -484,13 +484,21 @@ When running complicated `csdr` commands, we usually run into using `python` to
|
||||||
|
|
||||||
This function can eliminate some typing and make our command clearer.
|
This function can eliminate some typing and make our command clearer.
|
||||||
|
|
||||||
Instead of having to write: `csdr shift_addition_cc $(python -c "print 1200/2400000.")`
|
Instead of having to write:
|
||||||
|
|
||||||
...we can type: `csdr shift_addition_cc $(csdr =1200/2400000.)`
|
csdr shift_addition_cc $(python -c "print 1200/2400000.")
|
||||||
|
|
||||||
If using parenthesis inside the expression, it needs to be escaped (as `bash` would want to parse it): `csdr shift_addition_cc $(csdr =\(1200+300\)/2400000)`
|
...we can type:
|
||||||
|
|
||||||
Another solution is using single quotes to wrap the expression: `csdr shift_addition_cc $(csdr '=(1200+300)/2400000.')`
|
csdr shift_addition_cc $(csdr =1200/2400000.)
|
||||||
|
|
||||||
|
If using parenthesis inside the expression, it needs to be escaped (as `bash` would want to parse it):
|
||||||
|
|
||||||
|
csdr shift_addition_cc $(csdr =\(1200+300\)/2400000)
|
||||||
|
|
||||||
|
Another solution is using single quotes to wrap the expression:
|
||||||
|
|
||||||
|
csdr shift_addition_cc $(csdr '=(1200+300)/2400000.')
|
||||||
|
|
||||||
#### Buffer sizes
|
#### Buffer sizes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue