create sequence number.
Posted: 16 Dec 2011 02:44
hello,
I denday from Indonesia. I need your help.
I have a list of variables that contain more than 8000 lines of automatic variables created by other programs.
This list will be used by another program but must add an additional variable.
Additional variables are added at the end of the list and follow the previous sequence number.
Lets say the variable list contains 8250 lines and I have to add three additional variables again. How I can continue with the sequence number using the command
expectations of output in the file:
8251, variable_name1, #,
8252, variable_name2, #,
8253, variable_name3, #,
thanks a lot for your help.
I denday from Indonesia. I need your help.
I have a list of variables that contain more than 8000 lines of automatic variables created by other programs.
This list will be used by another program but must add an additional variable.
Additional variables are added at the end of the list and follow the previous sequence number.
Lets say the variable list contains 8250 lines and I have to add three additional variables again. How I can continue with the sequence number using the command
Code: Select all
echo "XXXX, variable_name, #,"> variable_list.csv
expectations of output in the file:
8251, variable_name1, #,
8252, variable_name2, #,
8253, variable_name3, #,
thanks a lot for your help.