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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-24-2007
mixxamike mixxamike is offline
Registered User
 

Join Date: Sep 2007
Posts: 2
I had an epiphany! (actually I just remembered what I had done earlier)

This is what I was looking for; nice and simple:

x=`print $4 | sed 's/N/-/'`

With $4 being passed in from another script which is N557788...

Thanks.
Reply With Quote