command to strip suffix in .sh script

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Jun 3 16:53:50 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/06/2010 17:11:16, Anh Ky Huynh wrote:
> On Wed, 02 Jun 2010 20:25:36 -0400
> Vinny <vinny-mail-01+freebsd20100602 at palaceofretention.ca> wrote:
>> On 06/02/2010 04:30, Matthew Seaman wrote:

>>> archive_name=${fromarchive%-*}

>> Thanks Matthew, that's really neat.  It took me a long time
>> to find the correct google incantation to find the documentation
>> for that.  ( bourne shell pattern-matching notation )

> In fact I know about that from Bash's documents:) IMHO, there are
> more Bash's documents than Bourne's ones.

Most of what I know about sh programming is due to close reading of the
sh(1) man page and studying examples of periodic and rc scripts and the
like.  Quantity of documentation really is no substitute for quality.

	Cheers,

	Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwH3hkACgkQ8Mjk52CukIwTMACePjyFyiXiEV4pAAOWPZDYI9Zy
ApYAn1s91AGLUYwVinrQjSWoxPLp893D
=3jcR
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list