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

Join Date: Apr 2009
Location: Trento, Italy
Posts: 116
Quote:
Originally Posted by colemar View Post
I believe there is no way to do it at once with bash parameters substitution.
Seems to be possible, though ugly:

Code:
colemar@deb:~$ echo ${clock//@(*?=\"|\/*?)/}
US