Bourne .sh ?

Aiza aiza21 at comclark.com
Thu Jul 1 23:43:59 UTC 2010


I have a file containing this

drwxrwxr-x  14 89987  546  512 Jun  6  2009 7.2-RELEASE
drwxrwxr-x  14 89987  546  512 Mar 23 04:59 7.3-RELEASE
drwxrwxr-x  13 89987  546  512 Nov 23  2009 8.0-RELEASE
drwxrwxr-x  13 89987  546  512 Jul  1 04:56 8.1-RC2

I want to strip off everything to the left of the release
version so I end up with this.

7.2-RELEASE
7.3-RELEASE
8.0-RELEASE
8.1-RC2

How would I code to do this?


More information about the freebsd-questions mailing list