The UNIX and Linux Forums  


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 -->
  #3 (permalink)  
Old 08-28-2008
RockyC123 RockyC123 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 6
Ahhh.. Thanks a lot. I forgot the `s when I copied it over from HP. It works with both `` and $(..)

Your second suggestion "O_BASE=${OHOME%/product/*}" works perfectly without all the extras. I cannot understand that one - need to get a good book to learn that syntax.

On the third part, the way this awk works is, it assumes the part before the first slash as a field: "/aaa/bbb/product/eee". In this one, aaa is the second field per awk and bbb is the third field.

Problem resolved. THanks a lot for your help.