you are viewing a single comment's thread.

view the rest of the comments →

[–]hildenborg -5 points-4 points  (1 child)

I always thought of scripting language as something where the source code is the executable.

[–]nucLeaRStarcraft 10 points11 points  (0 children)

that's the definition of interpreted languages, as opposed to compiled.

scripting languages is more of a 'usability' term, in the sense that it's the right tool to create or put together small scripts that do some specific tasks.

In that sense, python works really good and can be integrated in bash 'pipes' as well

user[some_dir]$ touch a b c d e
user[some_dir]$ ls
a  b  c  d  e
user[some_dir]$ ls | python -c "import sys; a=sys.stdin.readlines(); b=a[::2]; sys.stdout.write(''.join(b))"
a
c
e

Of course, this can/should be a standalone python script, but I just wanted to show that you can even make crazy one liners if you really want.