Hi everyone
I�m not a programmer and my knowledge of scripting is very poor, now I�m stock in a task at work and would really appreciate it if someone could help me out.
Here is the problem:
- I have a file with 9 million entries that look like this :
611424167
610864581
611881523
609585386
611022742
609283755
610960266
So basically there are 9 million lines and in each line there is a 9 digit number
2. I need to create a script that would group all these 9-digit numbers one after another with no space, put every to line into parentheses and add a text before every 10 line, which will eventually look like this :
Update table set location=55 (15848716,16743438,10116069,15635325,2281848545,16542381,10264272,537237738,16663957,10138040,10278391,1073929615,537578664,1074118324,1074201594,539647058,1074510375,1074414154,1074708478,1074746890,1075021290,1074513470,1075068666,1074988439,1075367528,540340963,1075597395,1075856225,1075902769,608293080,614368237,1075189157,1076843973,1077072172,1074201594,539647058,1074510375,1074414154,1074708478,1074746890,1075021290,1074513470,1075068666,1074988439,1075367528,540340963,1075597395,)
Update table set loation=55 15848716,16743438,10116069,15635325,2281848545,16542381,10264272,537237738,16663957,10138040,10278391,1073929615,537578664,1074118324,1074201594,539647058,1074510375,1074414154,1074708478,1074746890,1075021290,1074513470,1075068666,1074988439,1075367528,540340963,1075597395,1075856225,1075902769,608293080,614368237,1075189157,1076843973,1077072172,1074201594,539647058,1074510375,1074414154,1074708478,1074746890,1075021290,1074513470,1075068666,1074988439,1075367528,540340963,1075597395,)
your help would be very much appreciated...
i hope I hear from someone soon.:wall: