I want to make a convenient wrapper using gsort command. My question is how to add a minus before every variable in my varlist. Thank you.
Code:
program define gsort2 syntax varlist gsort -`varlist' //NOT the right way, but use tokenize? ......
Code:
gsort2 price weight mpg, EQUALS(=)
gsort -price -weight -mpg
No comments:
Post a Comment