2007-11-18 13:13:56 lang
Something for /usr/local/bin to blurt out the versions of various languages on your system. Born from different languages requiring slightly different switches to be thrown.

( sh )
  1  #!/bin/sh
2
echo
3 awk -V | awk '{ print $1,$3 }'
4 gcc --version | grep gcc | awk '{ print "GCC",$3 }'
5 java -fullversion
6 #lua -e 'print( _VERSION )'
7 perl -version | grep 'is perl' | awk '{ print "Perl",$4 }'
8 php -v | grep PHP | grep built | awk '{print $1,$2}'
9 python -V
10 ruby -v | awk '{ print "Ruby",$2 }'
11 echo
Leave a comment