Hi All,
I am writing a script where I need to read items of delimited data from a file which I have created earlier in the script ( a bit like Blue Peter, UK folks only!). With each data item that I read, which is delimited by a colon, I need to make a separate file whose name is taken from the item of data which has just been read. See below:
data file:
63748: 75836: 98374: 36485:
Read data from array into loop (e.g. 63478: )
take delimited item and create file named after the item (e.g. 63478)
read next item
loop until all data has been used
Could you brainy script bods give me the command line sequence to be able to complete this task?
Cheers!
Jimbo
I am writing a script where I need to read items of delimited data from a file which I have created earlier in the script ( a bit like Blue Peter, UK folks only!). With each data item that I read, which is delimited by a colon, I need to make a separate file whose name is taken from the item of data which has just been read. See below:
data file:
63748: 75836: 98374: 36485:
Read data from array into loop (e.g. 63478: )
take delimited item and create file named after the item (e.g. 63478)
read next item
loop until all data has been used
Could you brainy script bods give me the command line sequence to be able to complete this task?
Cheers!
Jimbo