extract column at index


/ Published in: Groovy
Save to your folder(s)



Copy this code and paste it in your HTML
  1. drwxrwxr-x 24 root admin 816 Nov 26 2006 CPsrsc-50
  2. drwxr-xr-x 13 zemian zemian 442 Sep 20 2005 JChessBoard-1.5.z1
  3. drwxr-xr-x 28 zemian admin 952 Mar 13 21:14 PDFBox-0.7.3
  4. drwxr-xr-x 18 zemian admin 612 Apr 4 2006 abator-0.6.1-119
  5. drwxr-xr-x 13 zemian admin 442 Oct 24 2006 activemq-4.0.2
  6. ''').splitEachLine(/\s+/){ println it[-1] }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.