Marius van Witzenburg We fight for our survival, we fight!

14jun/110

A whistle case for my girlfriends sister. Hand made :-)

Posted by mariusvw

When you give a whistle to someone, you can't give it without a case... So we thought, lets make one our selves...

We had to make it for a Tony Dixon Low D whistle (DX102).

Below you see the pictures from the start till finish :-)

We gave it to her as a Christmas present, she really liked it :-D

As an extra to cheer up the whistle we added a feather bound to wool to attach to the pipe of the whistle. You can see some images here.

We bought this whistle at the Celtic Shop.
They have a lot of other instruments as well... You should take some time to look around if you are into music ;-)

Geëtiketeerd als: , , , , Geen reacties
14jun/111

How to convert a string to lower case or UPPER case with Bash

Posted by mariusvw

Ever had a situation where you want the output or input in a BASH script to be lowercase or uppercase whatever happens but you couldn't find a way how to do that? You can!

Simply, use these two functions in your script:

1
2
3
4
5
6
7
8
9
10
toLower() {
  echo $1 | tr "[:upper:]" "[:lower:]" 
} 
toUpper() {
  echo $1 | tr "[:lower:]" "[:upper:]" 
}
 
# Example
echo `toUpper hey`
echo `toLower HEY`

I hope this helps you out with writing your precious script ;-)

Geëtiketeerd als: , , , , , , 1 Reactie