Re: formatting a list

2013-09-28 Thread Shawn H Corey
On Fri, 27 Sep 2013 22:59:01 -0700 (PDT) Rajeev Prasad wrote: > i want them to look neat, something like this: where they look in > line. I do not know before hand how long each word would be > > abc124567 > xy4z___xtr4__sdf > PQRSDR_xcvf__scc234 > > how could i use the sprintf to o

Re: formatting a list

2013-09-28 Thread Rob Dixon
On 28/09/2013 06:59, Rajeev Prasad wrote: hello, following is obtained by concatenating 3 values using an underscore to produce a list: |abc_12_4567 xy4z_xtr4_sdf PQRSDR_xcvf_scc234| i want them to look neat, something like this: where they look in line. I do not know before hand how long each

Re: formatting a list

2013-09-28 Thread Rob Dixon
On 28/09/2013 06:59, Rajeev Prasad wrote: hello, following is obtained by concatenating 3 values using an underscore to produce a list: |abc_12_4567 xy4z_xtr4_sdf PQRSDR_xcvf_scc234| i want them to look neat, something like this: where they look in line. I do not know before hand how long each

Re: formatting a list

2013-09-28 Thread Shlomi Fish
Hi Jing, On Sat, 28 Sep 2013 16:53:20 +0800 Logust Yu wrote: > Hi Rajeev, > I guess you can use printf to print them into strings, and then replace the > spaces with underscores. > The problem with using sprintf and a replace operation like that, like you suggest is that it won't handle traili

Re: formatting a list

2013-09-28 Thread Logust Yu
ofc it should be "sprintf"... 2013/9/28 Rajeev Prasad > hello, > > following is obtained by concatenating 3 values using an underscore to > produce a list: > > abc_12_4567 > xy4z_xtr4_sdf > PQRSDR_xcvf_scc234 > > i want them to look neat, something like this: where they look in line. I > do not

Re: formatting a list

2013-09-28 Thread Logust Yu
Hi Rajeev, I guess you can use printf to print them into strings, and then replace the spaces with underscores. Regards, Jing 2013/9/28 Rajeev Prasad > hello, > > following is obtained by concatenating 3 values using an underscore to > produce a list: > > abc_12_4567 > xy4z_xtr4_sdf > PQRSDR_x