# strip part of track info

**URL:** https://community.mp3tag.de/t/strip-part-of-track-info/7045
**Category:** General Discussion
**Created:** [July 17, 2008, 5:16am UTC](https://community.mp3tag.de/t/strip-part-of-track-info/7045 "2008-07-17T05:16:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![madivad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/90ced4/32.png) [@madivad](https://community.mp3tag.de/u/madivad)
#### Post date: [July 17, 2008, 5:16am UTC](https://community.mp3tag.de/t/strip-part-of-track-info/7045/1 "2008-07-17T05:16:56Z")

</div>

I want to create an action to remove total track from track fields, ie, when the track field contains 5/20 I want it to be only 5. What would I use for the script?

Mind you I want it to be smart enough to realise there might only be a 5 to begin with, so then skip that file (I want to do it in a big batch)

thanks

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [July 17, 2008, 6:06am UTC](https://community.mp3tag.de/t/strip-part-of-track-info/7045/2 "2008-07-17T06:06:32Z")

</div>

_Action type:_ **Format value**  
_Field:_ **TRACK**  
_Formatstring:_ **[$num(%track%,1)]**
