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 -->
  #7 (permalink)  
Old 04-21-2009
trey85stang trey85stang is offline
Registered User
  
 

Join Date: May 2008
Posts: 74
Quote:
Originally Posted by colemar View Post
Seems to be possible, though ugly:

Code:
colemar@deb:~$ echo ${clock//@(*?=\"|\/*?)/}
US
looks like that will do it, good stuff. I appreciate it. This will save me a lot of work creating a bunch of variables in a script