Update README.md

* Added -e option to make the echo command work on both Mac and Ubuntu. (#1)
This commit is contained in:
kojix2 2020-11-04 16:08:34 +09:00 committed by GitHub
parent 93f8efc60a
commit d085828883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ ruby -r numo/narray -e "puts Numo::DFloat.new(1000).rand_norm.to_a" \
<img src="https://i.imgur.com/wpsoGJq.png" width="75%" height="75%"> <img src="https://i.imgur.com/wpsoGJq.png" width="75%" height="75%">
```sh ```sh
echo "from numpy import random;" \ echo -e "from numpy import random;" \
"n = random.randn(10000);" \ "n = random.randn(10000);" \
"print('\\\n'.join(str(i) for i in n))" \ "print('\\\n'.join(str(i) for i in n))" \
| python \ | python \