# Create a seperate tag file for each line

**URL:** <https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947>\
**Category:** Support\
**Created:** [February 4, 2023, 12:18pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947 "2023-02-04T12:18:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidisom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@davidisom](https://community.mp3tag.de/u/davidisom)\
**Post date:** [February 4, 2023, 12:18pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/1 "2023-02-04T12:18:04Z")

</div>

Hi, I am an newbie and today am hoping someone can help me ....

I have been able to create a single csv file formatted exactly as i want for a few thousand tracks.  
however what i would like is to create seperate file for each track ?

here is a sample from the large file

Filename;Title;Artist;Album;Track;Year;Length;Comment  
0001.mp3;These Are Days;10,000 Maniacs;MTV Unplugged;01/14;1993;04:54;;  
0002.mp3;Eat For Two;10,000 Maniacs;MTV Unplugged;02/14;1993;04:23;;  
0003.mp3;Candy Everybody Wants;10,000 Maniacs;MTV Unplugged;03/14;1993;03:20;;

what i would like is to have a single file named xxx.txt for each line ? rather than a single large file

do you think this is possible using the export facility ?

David

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 4, 2023, 12:29pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/2 "2023-02-04T12:29:06Z")

</div>

You could use the export function to create a batch file that writes each line to a separate file like  
`echo 0001.mp3;These Are Days;10,000 Maniacs;MTV Unplugged;01/14;1993;04:54;; >xxx.txt`  
You may want to modify the "xxx.txt" with a variable.  
A next step would be to execute the batch file which then creates the individual files.  
I assume that the xxx.txt would have to be appended with an absolute path component to avoid that the file xxx.txt gets overwritten each time.

---

<div class="post-metadata">

**Author:** ![davidisom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@davidisom](https://community.mp3tag.de/u/davidisom)\
**Post date:** [February 4, 2023, 12:48pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/3 "2023-02-04T12:48:39Z")

</div>

> [@ohrenkino](#):
>
> You could use the export function to create a batch file that writes each line to a separate file like  
> `echo 0001.mp3;These Are Days;10,000 Maniacs;MTV Unplugged;01/14;1993;04:54;; >xxx.txt`  
> You may want to mo

what i am after is a file for each mp3 track that contains the tags I need

so for exmaple 0001.mp3 would have a matching 0001.txt and 0002.mpr have a matching 0002.txt etc

not sure exactly how create the batch sorry I am a little slow !

thanks for helping me

David

---

<div class="post-metadata">

**Author:** ![davidisom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@davidisom](https://community.mp3tag.de/u/davidisom)\
**Post date:** [February 4, 2023, 12:52pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/4 "2023-02-04T12:52:37Z")

</div>

i have managed to get 1 file per folder but i really would like 1 file per track

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 4, 2023, 2:12pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/5 "2023-02-04T14:12:01Z")

</div>

you would have to replace the

> [@ohrenkino](#):
>
> > xxx.txt

part with the matching filename - so probably you have to copy the "0001" part from

> [@ohrenkino](#):
>
> 0001.mp3

so that the refrenced filename in

> [@ohrenkino](#):
>
> `echo 0001.mp3;These Are Days;10,000 Maniacs;MTV Unplugged;01/14;1993;04:54;; >xxx.txt`

becomes  
`echo 0001.mp3;These Are Days;10,000 Maniacs;MTV Unplugged;01/14;1993;04:54;; >0001.txt`  
and that has to happen in every line for the resulting text file name.

As the export function deals with files that already have tags I fear that your existing file either has to be imported into the tags before you use the export function or not a lot can be done with the export from MP3tag.  
You would have to create a suitable .bat file from the source from which you got the csv-data.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [February 4, 2023, 3:26pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/6 "2023-02-04T15:26:43Z")

</div>

> [@davidisom](#):
>
> what i am after is a file for each mp3 track that contains the tags I need

You could post-process your export-file with the help of an external program.  
Have a look at [https://www.gdgsoft.com/gsplit/](https://www.gdgsoft.com/gsplit/).  
One of it's many features is to split files after a certain pattern. In your case this pattern would be `0x0D0x0A` which stands for CRLF, that occurs in your file at the end of each line.

---

<div class="post-metadata">

**Author:** ![davidisom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@davidisom](https://community.mp3tag.de/u/davidisom)\
**Post date:** [February 4, 2023, 5:47pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/7 "2023-02-04T17:47:10Z")

</div>

hi thank you for help i am sorted now !

david

---

<div class="post-metadata">

**Author:** ![davidisom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@davidisom](https://community.mp3tag.de/u/davidisom)\
**Post date:** [February 4, 2023, 5:47pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/8 "2023-02-04T17:47:39Z")

</div>

excellent have sorted it now, very many thanks.  
david

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [February 4, 2023, 5:51pm UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/9 "2023-02-04T17:51:53Z")

</div>

And what did you do?  
Perhaps that helps other users.

---

<div class="post-metadata">

**Author:** ![davidisom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@davidisom](https://community.mp3tag.de/u/davidisom)\
**Post date:** [February 5, 2023, 8:44am UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/10 "2023-02-05T08:44:45Z")

</div>

Hi,I used the export facility as you suggested to create a line per track adding the echo command along with appropriate fields and free from text. The has produced the text files just as I required.

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [March 7, 2023, 8:44am UTC](https://community.mp3tag.de/t/create-a-seperate-tag-file-for-each-line/59947/11 "2023-03-07T08:44:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
