20161209
I made a note because I was able to divert my knowledge from perl.
Python uses 2 series as an example
#!/bin/bash
function py () {
    python -- <<'EOF' - "$@"
import sys
print sys.argv[1]
EOF
}
function ru () {
    ruby -- <<'EOF' - "$@"
    puts ARGV[0]
EOF
}
py python
ru ruby
$ echo python | python -c '
import sys
for i in sys.stdin:
    print i,
'
$ echo python | python -c 'print raw_input()'
Recommended Posts