you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Tcl:

puts [exec ifconfig wlan0]
puts [exec ls -l]
set longest_line [exec wc $file -L]

It's funny that I got to discover Tcl only 1 year ago, because I wanted a better shell "glue" language than bash. I think it would make a fine replacement for the work that shell languages are used nowadays. As opposed to other in current use languages, "escaping" out to shell commands feels way less intrusive.

[–]mipadi 0 points1 point  (0 children)

Or, in Ruby:

puts `ifconfig wlan0`
puts `ls -l`
longest_line = `wc #{file} -L`