Re: multiple values single key vim script

2012-11-09 Thread Tim Chase
On 11/09/12 00:21, vicky b wrote: > HI , > > I have the file which has key value pair, for single key there are four > entries i want align all the values hoirzontall > > file contains > > alert_pref_email Nh?n các c?nh báo thông qua th? ?i?n t? > alert_pref_email Receive the Alerts through Em

Re: multiple values single key vim script

2012-11-09 Thread umu
hi, for more sophisticated text transformations of whole files, as you seem to need frequently, you should also have a look at "awk", in this case: #!/usr/bin/awk -f { a[$1]=a[$1]gensub("\\w* ","",1); } END { for(i in a) print i,a[i]; } good luck. ### On Fri, 9 Nov 2012, v

multiple values single key vim script

2012-11-08 Thread vicky b
HI , I have the file which has key value pair, for single key there are four entries i want align all the values hoirzontall file contains alert_pref_email Nh?n các c?nh báo thông qua th? ?i?n t? alert_pref_email Receive the Alerts through Email alert_pref_email Terima informasi penting melalu