Sure :-). An example will explain better:

```
guillem@guillemmac:~/repos/scilifelab/scripts (github)$ for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do echo ${branh}; echo ${branch##*/}; done
remotes/origin/develop
develop
remotes/origin/feature/pm
pm
remotes/origin/gh-pages
gh-pages
remotes/origin/github
github
remotes/origin/logstash
logstash
```

The thing is that to track the branch I need only the name of the branch, not the whole name with the remote included.

If you're more curious, check it out [here](http://tldp.org/LDP/abs/html/string-manipulation.html)