3 ms·
Being able to do arithmetic right in the shell is handy.
by city41 9y ago
Being able to do arithmetic right in the shell is handy.
- icebraining 9y ago$ echo $((1 + 2 * 3 - 4)) 3
- tyingq 9y agoThey way they chose to do it though seems to create some ambiguity. Like, what does this do? I can think of 3 distinctly different things it could do. $ echo test 1 + 2>err Or what if there are files with these names? $ cp /bin/grep 42 $ 42 + 1