I have two files. Both files are a TXT.

File one contains strings, one per line.

File two contains some text.

File two looks like this:

```
 title:
  VALUE:
    display_name: VALUE
    resource:
      material: material
      generate: false
      model_path: model/VALUE
 title:
  VALUE:
    display_name: VALUE
    resource:
      material: material
      generate: false
      model_path: model/VALUE

```

File one like this:

```
einundzwanzig
dreiundzwanzig
vierundzwanzig
fuenfundzwanzig

```

My intention is, that VALUE gets replaced with the string in line one, for three times. Then for the next three VALUEs the second string. And so on. I tried to get it done by using bash, but it doesn't work out.

So I tried following script:

```
    count=1
# filetwo.txt is your file
cat test.xml | tr "\n" "\t" > test2.xml
while read line
do
    echo $count
    echo $line
    sed -i " s_value[^<]*value_value$linevalue_${count}; " fileone.txt
    ((count++))
done < filetwo.txt
cat test2.xml | tr "\t" "\n" >fileoutput.txt

```

But it does not want to work :(