recode implementation (was: recode, get sample, and get columns)

Jakson Aquino jaksonaquino at yahoo.com.br
Fri Aug 12 13:31:44 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bernhard,

Em Qui 11 Ago 2005 11:47, Bernhard Reiter escreveu:
> 	As you can see from --bernhard, I tried to recreate
> new long options with the convention that they
> should start with a "--" and not just a "-". For the
> new options we might as well use "--" as their is no
> need for backward compability.

I agree! Since the first time I saw the statist help 
text that I perceived the existence of two styles of 
options. I don't know why I chosen the old style for 
the new options. Perhaps because the majority of 
options are in the old style. What a bad criterion!

What about if we turn all options to the new style of 
using "--" for full option name and "-" for 
abbreviations? The old style could still be accepted by 
produce a warning that it is deprecated and will no 
longer be supported in future releases. Only the new 
style would be documented.
 
>         I ask myself if using "awk" or python for
> this kind of reformatting would be better as it is
> more general and not much more verbose. Or the other
> way around: What is the advantage of using Statist
> for this?

You are correct! I simply don't know how to program 
with python, and I didn't know the existence of awk 
until some days ago. That's why I put some tips on the 
usage of awk and other gnu core utils. I discovered 
awk while trying to compile statist under Windows. 
Reading GnuWin32 download page I had interest in 
downloading core utils, and reading core utils 
documentation I found "awk" and "join". I even thought 
about removing recode.c from statist, but I think that 
the syntax of a "recode_config_file" is still simpler 
than the syntax of awk, at least for people who don't 
know how to program in C. Of course the development of 
recode.c wouldn't have been a priority if I already 
knew awk.

I still didn't find a tool for merging databases. I 
tried "join", but the results weren't satisfactory.
Perhaps I don't have enough knowledge on how to use 
join.

Best,

Jakson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC/Iing2jPD2DL3GURAkqoAJ0Y9o2gqIVJMnpGYV7xEdQeB3QqwwCeL3eh
tSoIzE6YWi9b5FD/7tpTrjI=
=9Trv
-----END PGP SIGNATURE-----




_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis.
Instale o discador agora! http://br.acesso.yahoo.com/




More information about the Statist-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)