The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 06-01-2008
mschwage mschwage is offline
Registered User
  
 

Join Date: Jul 2005
Location: Oak Park, IL
Posts: 102
Two things to note:
  1. The ${var%pattern} construct is a ksh (and perhaps bash) shell thing, not bourne shell or csh.
  2. The thing on the righthandside of the % is a pattern, not a regexp.
See SH(1) USER COMMANDS SH(1), do a search in the page for a percent sign. It's only about the 2nd or third entry down; you should find information about using this construct fairly readily.