Hi,
Wired output I am getting. Pls let me know what mistake i did on below loop script
paste profile.txt names.txt | while read i j
do
echo [Profile$i] >> profiles.ini
echo Name=$j >> profiles.ini
echo IsRelative=1 >> profiles.ini
echo Path=Profiles/$j >> profiles.ini
done
Output. But i need only upto Path=Profiles/test2 why it is printing more
[Profile3]
Name=test1
IsRelative=1
Path=Profiles/test1
[Profile4]
Name=test2
IsRelative=1
Path=Profiles/test2
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/
[Profile]
Name=
IsRelative=1
Path=Profiles/