Hi Guys,
I have written the following script test.sh in Linux .
read -p "Please enter the name of the application: " DIRTOCREATE
read -p "Please enter the number of associates to be given access to svn:" COUNT
for (( i=0 ; i<$COUNT ; i++ ))
do
read -p "Enter the associate id :" ID
echo $ID >> result.txt
Lets assume the DIRTOCREATE = Testing and the
result.txt contains the below
12345
67891
I want to convert the contents in result.txt and Testing in the format
Testing = 12345, 67891
Finally want to insert the above line just before "[/]" in a file say access.txt which is of format
AppConfigurator = 260812, 260812, 291758, 266551
1713 = 258028, 271602, 407682, 407356
LHS = 291758, 260812
[/]
In short , the output should be ,
AppConfigurator = 260812, 260812, 291758, 266551
1713 = 258028, 271602, 407682, 407356
LHS = 291758, 260812
Testing = 12345, 67891
[/]
Doable ???
Thanks Guys
Thanks.