This commit is contained in:
ha7ilm 2017-04-02 12:54:58 +02:00
parent 790281e533
commit 6c842ed65a

View file

@ -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